about summary refs log tree commit diff
path: root/youtube_dl/extractor/videomore.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-10-14 23:42:11 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-10-14 23:42:11 +0800
commit146969e05bc2e2774aa96c62030cdb85ca5c7667 (patch)
treeba10cecd1ad6a6884592531ba1f96bc799734a94 /youtube_dl/extractor/videomore.py
parente2004ccaf711ff9aa9c0b647c3d6219093fb6c2a (diff)
downloadyoutube-dl-146969e05bc2e2774aa96c62030cdb85ca5c7667.tar.gz
youtube-dl-146969e05bc2e2774aa96c62030cdb85ca5c7667.tar.xz
youtube-dl-146969e05bc2e2774aa96c62030cdb85ca5c7667.zip
[videomore] Support <iframe> embed videos
Seen in CarambaTVPage
Diffstat (limited to 'youtube_dl/extractor/videomore.py')
-rw-r--r--youtube_dl/extractor/videomore.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/extractor/videomore.py b/youtube_dl/extractor/videomore.py
index 8a11ff848..7f2566586 100644
--- a/youtube_dl/extractor/videomore.py
+++ b/youtube_dl/extractor/videomore.py
@@ -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')