aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-02-19 22:29:08 +0700
committerSergey M․ <dstftw@gmail.com>2018-02-19 22:29:08 +0700
commit90830004c893e2d5f0643c05af064cfc7a3b579e (patch)
tree9f744b1d58382153e06f6e5a19d9299c0327dc80 /youtube_dl
parent18d7aa6efa6c85f1e07e4e1ecd42c7dd5fd7da99 (diff)
[sonyliv] Respect referrer (closes #15648)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/sonyliv.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/sonyliv.py b/youtube_dl/extractor/sonyliv.py
index c3078e285..58a8c0d4d 100644
--- 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)