A feature-rich command-line audio/video downloader
[brightcove] Fix _extract_url (closes #12782)
Sergey M․f631b557915e
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.pyindex 124497e95c..c4fd96b3d7 100644--- a/youtube_dl/extractor/brightcove.py+++ b/youtube_dl/extractor/brightcove.py@@ -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@staticmethoddiff --git a/youtube_dl/extractor/nowness.py b/youtube_dl/extractor/nowness.pyindex b6c5ee6e41..f26dafb8f0 100644--- a/youtube_dl/extractor/nowness.py+++ b/youtube_dl/extractor/nowness.py@@ -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')diff --git a/youtube_dl/extractor/yahoo.py b/youtube_dl/extractor/yahoo.pyindex 4951414e91..38f82bf447 100644--- a/youtube_dl/extractor/yahoo.py+++ b/youtube_dl/extractor/yahoo.py@@ -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())