From: Philipp Hagemeister Date: Mon, 9 Feb 2015 13:46:10 +0000 (+0100) Subject: [generic] Improve SBS detection (Fixes #4899) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=e98b8e79ead03f33705356b32a08664ef2df2628;p=youtube-dl [generic] Improve SBS detection (Fixes #4899) --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 8a0f10803..f4500e931 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -1047,7 +1047,12 @@ class GenericIE(InfoExtractor): # Look for embedded sbs.com.au player mobj = re.search( - r']+?src=(["\'])(?Phttps?://(?:www\.)sbs\.com\.au/ondemand/video/single/.+?)\1', + r'''(?x) + (?: + ]+?src= + ) + (["\'])(?Phttps?://(?:www\.)?sbs\.com\.au/ondemand/video/.+?)\1''', webpage) if mobj is not None: return self.url_result(mobj.group('url'), 'SBS')