projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1cef7a
)
[generic] More generic support for embedded vimeo player (#1602)
author
Sergey M․
<dstftw@gmail.com>
Sat, 15 Mar 2014 17:47:04 +0000
(
00:47
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 15 Mar 2014 17:47:04 +0000
(
00:47
+0700)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index 6e632477921c17bfd0dff837074b72d4ae83abed..66e189da18b6185b8bf23c32a09989132a7cd2be 100644
(file)
--- a/
youtube_dl/extractor/generic.py
+++ b/
youtube_dl/extractor/generic.py
@@
-324,9
+324,9
@@
class GenericIE(InfoExtractor):
# Look for embedded (iframe) Vimeo player
mobj = re.search(
- r'<iframe[^>]+?src=
"((?:https?:)?//player\.vimeo\.com/video/.+?)"
', webpage)
+ r'<iframe[^>]+?src=
(["\'])(?P<url>(?:https?:)?//player\.vimeo\.com/video/.+?)\1
', webpage)
if mobj:
- player_url = unescapeHTML(mobj.group(
1
))
+ player_url = unescapeHTML(mobj.group(
'url'
))
surl = smuggle_url(player_url, {'Referer': url})
return self.url_result(surl, 'Vimeo')