mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 03:32:05 +00:00
[brightcove] Fix _extract_url (closes #12782)
This commit is contained in:
parent
bf1b87cd91
commit
f631b55791
3 changed files with 4 additions and 4 deletions
|
@ -484,8 +484,8 @@ class BrightcoveNewIE(InfoExtractor):
|
||||||
}]
|
}]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _extract_url(webpage):
|
def _extract_url(ie, webpage):
|
||||||
urls = BrightcoveNewIE._extract_urls(webpage)
|
urls = BrightcoveNewIE._extract_urls(ie, webpage)
|
||||||
return urls[0] if urls else None
|
return urls[0] if urls else None
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
@ -28,7 +28,7 @@ class NownessBaseIE(InfoExtractor):
|
||||||
bc_url = BrightcoveLegacyIE._extract_brightcove_url(player_code)
|
bc_url = BrightcoveLegacyIE._extract_brightcove_url(player_code)
|
||||||
if bc_url:
|
if bc_url:
|
||||||
return self.url_result(bc_url, BrightcoveLegacyIE.ie_key())
|
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:
|
if bc_url:
|
||||||
return self.url_result(bc_url, BrightcoveNewIE.ie_key())
|
return self.url_result(bc_url, BrightcoveNewIE.ie_key())
|
||||||
raise ExtractorError('Could not find player definition')
|
raise ExtractorError('Could not find player definition')
|
||||||
|
|
|
@ -258,7 +258,7 @@ class YahooIE(InfoExtractor):
|
||||||
return self.url_result(bc_url, BrightcoveLegacyIE.ie_key())
|
return self.url_result(bc_url, BrightcoveLegacyIE.ie_key())
|
||||||
|
|
||||||
# Look for Brightcove New Studio embeds
|
# Look for Brightcove New Studio embeds
|
||||||
bc_url = BrightcoveNewIE._extract_url(webpage)
|
bc_url = BrightcoveNewIE._extract_url(self, webpage)
|
||||||
if bc_url:
|
if bc_url:
|
||||||
return self.url_result(bc_url, BrightcoveNewIE.ie_key())
|
return self.url_result(bc_url, BrightcoveNewIE.ie_key())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue