projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b6a748
)
[vimeo] Recognize non-standard embeds (#1638)
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 9 Jul 2016 06:38:27 +0000
(14:38 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 9 Jul 2016 06:38:27 +0000
(14:38 +0800)
youtube_dl/extractor/vimeo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vimeo.py
b/youtube_dl/extractor/vimeo.py
index d9c9852d463d2ee533e3447f536a1a665e06ddd8..7e854f3265eac3312f1b63199ce8633a17eb7d04 100644
(file)
--- a/
youtube_dl/extractor/vimeo.py
+++ b/
youtube_dl/extractor/vimeo.py
@@
-364,6
+364,11
@@
class VimeoIE(VimeoBaseInfoExtractor):
r'<embed[^>]+?src="((?:https?:)?//(?:www\.)?vimeo\.com/moogaloop\.swf.+?)"', webpage)
if mobj:
return mobj.group(1)
+ # Look more for non-standard embedded Vimeo player
+ mobj = re.search(
+ r'<video[^>]+src=(?P<q1>[\'"])(?P<url>(?:https?:)?//(?:www\.)?vimeo\.com/[0-9]+)(?P=q1)', webpage)
+ if mobj:
+ return mobj.group('url')
def _verify_player_video_password(self, url, video_id):
password = self._downloader.params.get('videopassword')