projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18d7aa6
)
[sonyliv] Respect referrer (closes #15648)
author
Sergey M․
<dstftw@gmail.com>
Mon, 19 Feb 2018 15:29:08 +0000
(22:29 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 19 Feb 2018 15:29:08 +0000
(22:29 +0700)
youtube_dl/extractor/sonyliv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/sonyliv.py
b/youtube_dl/extractor/sonyliv.py
index c3078e285799ab9d159a072d67bf560ee03bd25b..58a8c0d4ddb2f282241af2afad37e9d4b8403085 100644
(file)
--- a/
youtube_dl/extractor/sonyliv.py
+++ b/
youtube_dl/extractor/sonyliv.py
@@
-33,5
+33,8
@@
class SonyLIVIE(InfoExtractor):
def _real_extract(self, url):
brightcove_id = self._match_id(url)
return self.url_result(
- smuggle_url(self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id, {'geo_countries': ['IN']}),
+ smuggle_url(self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id, {
+ 'geo_countries': ['IN'],
+ 'referrer': url,
+ }),
'BrightcoveNew', brightcove_id)