Browse Source

[generic] Improve SBS detection (Fixes #4899)

totalwebcasting
Philipp Hagemeister 10 years ago
parent
commit
e98b8e79ea
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      youtube_dl/extractor/generic.py

+ 6
- 1
youtube_dl/extractor/generic.py View File

@ -1047,7 +1047,12 @@ class GenericIE(InfoExtractor):
# Look for embedded sbs.com.au player # Look for embedded sbs.com.au player
mobj = re.search( 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) webpage)
if mobj is not None: if mobj is not None:
return self.url_result(mobj.group('url'), 'SBS') return self.url_result(mobj.group('url'), 'SBS')


Loading…
Cancel
Save