From 752bfbc1fa210ad7b1354adc5e055047fe699c47 Mon Sep 17 00:00:00 2001 From: Surya Oktafendri Date: Sat, 7 Apr 2018 22:52:42 +0700 Subject: [PATCH] [generic] Fix regex for share-videos.se embeds detection --- youtube_dl/extractor/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 46de34e4c..f81b3818f 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -2990,7 +2990,7 @@ class GenericIE(InfoExtractor): # Look for Share-Videos.se embeds sharevideosse_urls = [m.group('url') for m in re.finditer( - r']+?src=(["\']+)(?Phttps?://embed\.share-videos\.se/auto/embed/[^"\']+)\1', + r']+?src\s*=\s*(["\'])(?Phttps?://embed\.share-videos\.se/auto/embed/\d+\?.+)\1', webpage)] if sharevideosse_urls: return self.playlist_from_matches(