logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 4bf22f7a1014c55e3358b5a419945071b152eafc
parent 15d1e8a23dbaa28635cae30ff6c5cfb095b4c7c0
Author: Alex Seiler <seileralex@gmail.com>
Date:   Tue,  8 Aug 2017 00:41:38 +0200

[20min] Fix embeds extraction


Diffstat:

Myoutube_dl/extractor/twentymin.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/twentymin.py b/youtube_dl/extractor/twentymin.py @@ -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):