[yahoo] Add support for embedded videos (Closes #3525)
This commit is contained in:
parent
c990bb3633
commit
49807b4ac6
2 changed files with 20 additions and 2 deletions
|
@ -706,6 +706,13 @@ class GenericIE(InfoExtractor):
|
|||
url = unescapeHTML(mobj.group('url'))
|
||||
return self.url_result(url, ie='MTVServicesEmbedded')
|
||||
|
||||
# Look for embedded yahoo player
|
||||
mobj = re.search(
|
||||
r'<iframe[^>]+?src=(["\'])(?P<url>https?://(?:screen|movies)\.yahoo\.com/.+?\.html\?format=embed)\1',
|
||||
webpage)
|
||||
if mobj is not None:
|
||||
return self.url_result(mobj.group('url'), 'Yahoo')
|
||||
|
||||
# Start with something easy: JW Player in SWFObject
|
||||
found = re.findall(r'flashvars: [\'"](?:.*&)?file=(http[^\'"&]*)', webpage)
|
||||
if not found:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue