projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbb1275
)
[brightcove:new] Add ability to smuggle geo_countries into URL
author
Sergey M․
<dstftw@gmail.com>
Fri, 3 Mar 2017 16:57:01 +0000
(23:57 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 3 Mar 2017 16:58:03 +0000
(23:58 +0700)
youtube_dl/extractor/brightcove.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/brightcove.py
b/youtube_dl/extractor/brightcove.py
index f8605be82f0ab5453836ec9497ef9b8700be0e97..66c8cb219818f380bfb41ff01c1d5e41aee6e6ab 100644
(file)
--- 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(