aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/brightcove.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-03-03 23:57:01 +0700
committerSergey M․ <dstftw@gmail.com>2017-03-03 23:58:03 +0700
commitd16f27ca272cb10f4de87814665402b9737175ab (patch)
tree9abbf93110d429503ea6b607ee8224a54661c699 /youtube_dl/extractor/brightcove.py
parentcbb127568a6182df2c5a2d65426de523f1f7b43f (diff)
[brightcove:new] Add ability to smuggle geo_countries into URL
Diffstat (limited to 'youtube_dl/extractor/brightcove.py')
-rw-r--r--youtube_dl/extractor/brightcove.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py
index f8605be82..66c8cb219 100644
--- a/youtube_dl/extractor/brightcove.py
+++ b/youtube_dl/extractor/brightcove.py
@@ -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(