Made https?: optional in extract urls for ustream

This commit is contained in:
Parth Verma 2018-05-01 15:39:20 +05:30
parent 9e35d5c0ac
commit 56d61298ef

View File

@ -72,7 +72,7 @@ class UstreamIE(InfoExtractor):
@staticmethod @staticmethod
def _extract_url(webpage): def _extract_url(webpage):
mobj = re.search( mobj = re.search(
r'<iframe[^>]+?src=(["\'])(?P<url>https?://www\.ustream\.tv/embed/.+?)\1', webpage) r'<iframe[^>]+?src=(["\'])(?P<url>(?:https?:)?//www\.ustream\.tv/embed/.+?)\1', webpage)
if mobj is not None: if mobj is not None:
return mobj.group('url') return mobj.group('url')