mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[brightcove:new] Add ability to smuggle geo_countries into URL
This commit is contained in:
parent
cbb127568a
commit
d16f27ca27
1 changed files with 3 additions and 0 deletions
|
@ -515,6 +515,9 @@ def _extract_urls(webpage):
|
|||
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(
|
||||
|
|
Loading…
Reference in a new issue