[sbs] Add new extractor (Fixes #3566)

This commit is contained in:
Philipp Hagemeister 2014-08-23 15:20:49 +02:00
parent 38fc045253
commit 2ef6fcb5d8
3 changed files with 64 additions and 0 deletions

View file

@ -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: