Browse Source

[brightcove] Fix _extract_url (closes #12782)

master-ytdl-org
Sergey M․ 8 years ago
parent
commit
f631b55791
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
3 changed files with 4 additions and 4 deletions
  1. +2
    -2
      youtube_dl/extractor/brightcove.py
  2. +1
    -1
      youtube_dl/extractor/nowness.py
  3. +1
    -1
      youtube_dl/extractor/yahoo.py

+ 2
- 2
youtube_dl/extractor/brightcove.py View 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


+ 1
- 1
youtube_dl/extractor/nowness.py View 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')


+ 1
- 1
youtube_dl/extractor/yahoo.py View 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())


Loading…
Cancel
Save