From 56d61298efa4a55b163cd5583e2cb6de2304ce86 Mon Sep 17 00:00:00 2001 From: Parth Verma Date: Tue, 1 May 2018 15:39:20 +0530 Subject: [PATCH] Made https?: optional in extract urls for ustream --- youtube_dl/extractor/ustream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/ustream.py b/youtube_dl/extractor/ustream.py index caf390f07..beac22264 100644 --- a/youtube_dl/extractor/ustream.py +++ b/youtube_dl/extractor/ustream.py @@ -72,7 +72,7 @@ class UstreamIE(InfoExtractor): @staticmethod def _extract_url(webpage): mobj = re.search( - r']+?src=(["\'])(?Phttps?://www\.ustream\.tv/embed/.+?)\1', webpage) + r']+?src=(["\'])(?P(?:https?:)?//www\.ustream\.tv/embed/.+?)\1', webpage) if mobj is not None: return mobj.group('url')