projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2004cc
)
[videomore] Support <iframe> embed videos
author
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 14 Oct 2016 15:42:11 +0000
(23:42 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 14 Oct 2016 15:42:11 +0000
(23:42 +0800)
Seen in CarambaTVPage
youtube_dl/extractor/videomore.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/videomore.py
b/youtube_dl/extractor/videomore.py
index 8a11ff84828a26d35566c7f5fe65c3f4cdc322b4..7f25665864c696757903deeb582a64f16eec0d85 100644
(file)
--- 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')