Browse Source

[brightcove:new] Add ability to smuggle geo_countries into URL

master
Sergey M․ 7 years ago
parent
commit
d16f27ca27
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 3 additions and 0 deletions
  1. 3
      youtube_dl/extractor/brightcove.py

3
youtube_dl/extractor/brightcove.py

@ -515,6 +515,9 @@ class BrightcoveNewIE(InfoExtractor):
return entries return entries
def _real_extract(self, url): def _real_extract(self, url):
url, smuggled_data = unsmuggle_url(url, {})
self._initialize_geo_bypass(smuggled_data.get('geo_countries'))
account_id, player_id, embed, video_id = re.match(self._VALID_URL, url).groups() account_id, player_id, embed, video_id = re.match(self._VALID_URL, url).groups()
webpage = self._download_webpage( webpage = self._download_webpage(

Loading…
Cancel
Save