[yahoo] Recognize brightcove embed (Closes #9995)
authorSergey M․ <dstftw@gmail.com>
Sun, 3 Jul 2016 16:00:36 +0000 (23:00 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 3 Jul 2016 16:00:36 +0000 (23:00 +0700)
youtube_dl/extractor/yahoo.py

index 927a964a4c5036094d657a634c6df8f8874e00af..b0679dfb70868f39b1190b8b04696787c02d75b1 100644 (file)
@@ -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