]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[20min] Fix embeds extraction
authorAlex Seiler <seileralex@gmail.com>
Mon, 7 Aug 2017 22:41:38 +0000 (00:41 +0200)
committerSergey M <dstftw@gmail.com>
Mon, 7 Aug 2017 22:41:38 +0000 (05:41 +0700)
youtube_dl/extractor/twentymin.py

index 4fd1aa4bfbdaea2ec5abbac2161f6aea25e5fbbd..a42977f397e03ab71f70c585e1f3c34113b78eda 100644 (file)
@@ -50,7 +50,7 @@ class TwentyMinutenIE(InfoExtractor):
     @staticmethod
     def _extract_urls(webpage):
         return [m.group('url') for m in re.finditer(
-            r'<iframe[^>]+src=(["\'])(?P<url>(?:https?://)?(?:www\.)?20min\.ch/videoplayer/videoplayer.html\?.*?\bvideoId@\d+.*?)\1',
+            r'<iframe[^>]+src=(["\'])(?P<url>(?:(?:https?:)?//)?(?:www\.)?20min\.ch/videoplayer/videoplayer.html\?.*?\bvideoId@\d+.*?)\1',
             webpage)]
 
     def _real_extract(self, url):