[20detik] Fix embed URL detection

This commit is contained in:
Surya Oktafendri 2018-04-03 16:16:03 +07:00
parent f428f2fa90
commit 6633aa7340
No known key found for this signature in database
GPG Key ID: 8CAB076E32F1FC8D

View File

@ -33,7 +33,7 @@ class DuaPuluhDetikIE(InfoExtractor):
@staticmethod
def _extract_urls(webpage):
return [m.group('url') for m in re.finditer(
r'[^\']<iframe[^>]+?src=(["\'])(?P<url>https?://20\.detik\.com/embed/(\d+)[^"\']+?)\1',
r'<iframe[^>]+?src\s*=\s*(["\'])(?P<url>https?://20\.detik\.com/embed/\d+).+?\1',
webpage)]
def _real_extract(self, url):