From a95a2f148d1f40e26d877e0f6dafbbae71852e7b Mon Sep 17 00:00:00 2001 From: Bagira Date: Mon, 6 Feb 2017 22:22:36 +0100 Subject: [PATCH] [openload] improvement embedding support for embedded link with referrer --- youtube_dl/extractor/openload.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/openload.py b/youtube_dl/extractor/openload.py index 32289d897..6ecf7d68b 100644 --- a/youtube_dl/extractor/openload.py +++ b/youtube_dl/extractor/openload.py @@ -60,9 +60,9 @@ class OpenloadIE(InfoExtractor): @staticmethod def _extract_urls(webpage): - return re.findall( - r']+src=["\']((?:https?://)?(?:openload\.(?:co|io)|oload\.tv)/embed/[a-zA-Z0-9-_]+)', - webpage) + return [url for _, url in re.findall( + r']+src=(["\'])(?:[^\?]+\?|[^=]+=|)(?P(?:https?://|//|)(?:openload\.(?:co|io)|oload\.tv)/(?:f|embed)/[^"\']+)\1', + webpage)] def _real_extract(self, url): video_id = self._match_id(url)