diff options
author | Sergey M․ <dstftw@gmail.com> | 2014-08-16 13:56:22 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2014-08-16 13:56:22 +0700 |
commit | 49807b4ac6aab2db702afbde20215641210e0413 (patch) | |
tree | 8300d2d56f1ca9cc8d952c9aa6521a6d079dde18 /youtube_dl/extractor/generic.py | |
parent | c990bb36338c422d4da9f092384da1dfbb528d87 (diff) |
[yahoo] Add support for embedded videos (Closes #3525)
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 bcb076594..8e915735e 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -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: |