[generic] More generic support for embedded vimeo player (#1602)
authorSergey M․ <dstftw@gmail.com>
Sat, 15 Mar 2014 17:47:04 +0000 (00:47 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 15 Mar 2014 17:47:04 +0000 (00:47 +0700)
youtube_dl/extractor/generic.py

index 6e632477921c17bfd0dff837074b72d4ae83abed..66e189da18b6185b8bf23c32a09989132a7cd2be 100644 (file)
@@ -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')