diff --git a/youtube_dl/extractor/detik.py b/youtube_dl/extractor/detik.py index 5a298f4f6..f438314fc 100644 --- a/youtube_dl/extractor/detik.py +++ b/youtube_dl/extractor/detik.py @@ -33,7 +33,7 @@ class DuaPuluhDetikIE(InfoExtractor): @staticmethod def _extract_urls(webpage): return [m.group('url') for m in re.finditer( - r'[^\']]+?src=(["\'])(?Phttps?://20\.detik\.com/embed/(\d+)[^"\']+?)\1', + r']+?src\s*=\s*(["\'])(?Phttps?://20\.detik\.com/embed/\d+).+?\1', webpage)] def _real_extract(self, url):