[generic] Correct handling of embedded vimeo players (#3955)
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 15 Oct 2014 11:50:53 +0000 (13:50 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 15 Oct 2014 11:50:53 +0000 (13:50 +0200)
youtube_dl/extractor/generic.py

index 122763a23ff7e6461cf661ea692c14b09112af1c..158dc95a5a5380ff56414c2832308f3441cd2a66 100644 (file)
@@ -609,13 +609,13 @@ class GenericIE(InfoExtractor):
         if mobj:
             player_url = unescapeHTML(mobj.group('url'))
             surl = smuggle_url(player_url, {'Referer': url})
-            return self.url_result(surl, 'Vimeo')
+            return self.url_result(surl)
 
         # Look for embedded (swf embed) Vimeo player
         mobj = re.search(
-            r'<embed[^>]+?src="(https?://(?:www\.)?vimeo\.com/moogaloop\.swf.+?)"', webpage)
+            r'<embed[^>]+?src="((?:https?:)?//(?:www\.)?vimeo\.com/moogaloop\.swf.+?)"', webpage)
         if mobj:
-            return self.url_result(mobj.group(1), 'Vimeo')
+            return self.url_result(mobj.group(1))
 
         # Look for embedded YouTube player
         matches = re.findall(r'''(?x)