diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2015-02-09 14:46:10 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2015-02-09 14:46:10 +0100 |
commit | e98b8e79ead03f33705356b32a08664ef2df2628 (patch) | |
tree | 39b5fa7948a10d7357dcccd7fd78e8919f9d2d94 /youtube_dl | |
parent | 196121c51baf2e7b7bb9c657f2f832b2840432de (diff) |
[generic] Improve SBS detection (Fixes #4899)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/generic.py | 7 |
1 files changed, 6 insertions, 1 deletions
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'<iframe[^>]+?src=(["\'])(?P<url>https?://(?:www\.)sbs\.com\.au/ondemand/video/single/.+?)\1', + r'''(?x) + (?: + <meta\s+property="og:video"\s+content=| + <iframe[^>]+?src= + ) + (["\'])(?P<url>https?://(?:www\.)?sbs\.com\.au/ondemand/video/.+?)\1''', webpage) if mobj is not None: return self.url_result(mobj.group('url'), 'SBS') |