diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-07-03 23:00:36 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-07-03 23:00:36 +0700 |
commit | 6a4e659c9316147b0693ee6d2a447a8975830321 (patch) | |
tree | 2548c207ffa8278250554c060d2913a756875fd1 | |
parent | 40f3666f6b2431d8756a36d574139c8885b15c53 (diff) |
[yahoo] Recognize brightcove embed (Closes #9995)
-rw-r--r-- | youtube_dl/extractor/yahoo.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/youtube_dl/extractor/yahoo.py b/youtube_dl/extractor/yahoo.py index 927a964a4..b0679dfb7 100644 --- a/youtube_dl/extractor/yahoo.py +++ b/youtube_dl/extractor/yahoo.py @@ -19,6 +19,7 @@ from ..utils import ( mimetype2ext, ) +from .brightcove import BrightcoveNewIE from .nbc import NBCSportsVPlayerIE @@ -227,7 +228,12 @@ class YahooIE(InfoExtractor): # Look for NBCSports iframes nbc_sports_url = NBCSportsVPlayerIE._extract_url(webpage) if nbc_sports_url: - return self.url_result(nbc_sports_url, 'NBCSportsVPlayer') + return self.url_result(nbc_sports_url, NBCSportsVPlayerIE.ie_key()) + + # Look for Brightcove New Studio embeds + bc_url = BrightcoveNewIE._extract_url(webpage) + if bc_url: + return self.url_result(bc_url, BrightcoveNewIE.ie_key()) # Query result is often embedded in webpage as JSON. Sometimes explicit requests # to video API results in a failure with geo restriction reason therefore using |