1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-10-31 22:55:26 +00:00

[videomore] Support <iframe> embed videos

Seen in CarambaTVPage
This commit is contained in:
Yen Chi Hsuan 2016-10-14 23:42:11 +08:00
parent e2004ccaf7
commit 146969e05b
No known key found for this signature in database
GPG key ID: 3FDDD575826C5C30

View file

@ -86,6 +86,11 @@ class VideomoreIE(InfoExtractor):
mobj = re.search( mobj = re.search(
r'<object[^>]+data=(["\'])https?://videomore\.ru/player\.swf\?.*config=(?P<url>https?://videomore\.ru/(?:[^/]+/)+\d+\.xml).*\1', r'<object[^>]+data=(["\'])https?://videomore\.ru/player\.swf\?.*config=(?P<url>https?://videomore\.ru/(?:[^/]+/)+\d+\.xml).*\1',
webpage) webpage)
if not mobj:
mobj = re.search(
r'<iframe[^>]+src=([\'"])(?P<url>https?://videomore\.ru/embed/\d+)',
webpage)
if mobj: if mobj:
return mobj.group('url') return mobj.group('url')