]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[videomore] Support <iframe> embed videos
authorYen Chi Hsuan <yan12125@gmail.com>
Fri, 14 Oct 2016 15:42:11 +0000 (23:42 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Fri, 14 Oct 2016 15:42:11 +0000 (23:42 +0800)
Seen in CarambaTVPage

youtube_dl/extractor/videomore.py

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