[20min] Fix embeds extraction

pull/8/head
Alex Seiler 2017-08-08 00:41:38 +02:00 zatwierdzone przez Sergey M
rodzic 15d1e8a23d
commit 4bf22f7a10
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -50,7 +50,7 @@ class TwentyMinutenIE(InfoExtractor):
@staticmethod @staticmethod
def _extract_urls(webpage): def _extract_urls(webpage):
return [m.group('url') for m in re.finditer( 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)] webpage)]
def _real_extract(self, url): def _real_extract(self, url):