1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 11:41:52 +00:00

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

This commit is contained in:
Sergey M․ 2017-03-03 23:57:01 +07:00
parent cbb127568a
commit d16f27ca27
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -515,6 +515,9 @@ class BrightcoveNewIE(InfoExtractor):
return entries
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()
webpage = self._download_webpage(