[brightcove] Fix _extract_url (closes #12782)
authorSergey M․ <dstftw@gmail.com>
Tue, 18 Apr 2017 14:46:25 +0000 (21:46 +0700)
committerSergey M․ <dstftw@gmail.com>
Tue, 18 Apr 2017 14:46:25 +0000 (21:46 +0700)
youtube_dl/extractor/brightcove.py
youtube_dl/extractor/nowness.py
youtube_dl/extractor/yahoo.py

index 124497e95c7236b21d17419133cdb63cee55f955..c4fd96b3d7f14ddae4a2c2e9411a922cd42cd6f3 100644 (file)
@@ -484,8 +484,8 @@ class BrightcoveNewIE(InfoExtractor):
     }]
 
     @staticmethod
-    def _extract_url(webpage):
-        urls = BrightcoveNewIE._extract_urls(webpage)
+    def _extract_url(ie, webpage):
+        urls = BrightcoveNewIE._extract_urls(ie, webpage)
         return urls[0] if urls else None
 
     @staticmethod
index b6c5ee6e417e12d35731e45e5755435867a3b67b..f26dafb8f03db4c937ace6607f2ddc795fb245de 100644 (file)
@@ -28,7 +28,7 @@ class NownessBaseIE(InfoExtractor):
                         bc_url = BrightcoveLegacyIE._extract_brightcove_url(player_code)
                         if bc_url:
                             return self.url_result(bc_url, BrightcoveLegacyIE.ie_key())
-                        bc_url = BrightcoveNewIE._extract_url(player_code)
+                        bc_url = BrightcoveNewIE._extract_url(self, player_code)
                         if bc_url:
                             return self.url_result(bc_url, BrightcoveNewIE.ie_key())
                         raise ExtractorError('Could not find player definition')
index 4951414e91ffbc34dc83629403c8b64ffb5e5682..38f82bf447128d42643afa865c41efc7db9014cd 100644 (file)
@@ -258,7 +258,7 @@ class YahooIE(InfoExtractor):
             return self.url_result(bc_url, BrightcoveLegacyIE.ie_key())
 
         # Look for Brightcove New Studio embeds
-        bc_url = BrightcoveNewIE._extract_url(webpage)
+        bc_url = BrightcoveNewIE._extract_url(self, webpage)
         if bc_url:
             return self.url_result(bc_url, BrightcoveNewIE.ie_key())