diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-08-23 15:20:49 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-08-23 15:20:56 +0200 |
commit | 2ef6fcb5d812278db13768fb461239cbfafbbe6f (patch) | |
tree | b03382ecc4510a328b0e99a38a1460385a7ac4e1 /youtube_dl/extractor/generic.py | |
parent | 38fc045253095b61f1e1a2af1559e199a9b66eaa (diff) |
[sbs] Add new extractor (Fixes #3566)
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 2ff691b45..62b1da25e 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -731,6 +731,13 @@ class GenericIE(InfoExtractor): if mobj is not None: return self.url_result(mobj.group('url'), 'Yahoo') + # Look for embedded sbs.com.au player + mobj = re.search( + r'<iframe[^>]+?src=(["\'])(?P<url>https?://(?:www\.)sbs\.com\.au/ondemand/video/single/.+?)\1', + webpage) + if mobj is not None: + return self.url_result(mobj.group('url'), 'SBS') + # Start with something easy: JW Player in SWFObject found = re.findall(r'flashvars: [\'"](?:.*&)?file=(http[^\'"&]*)', webpage) if not found: |