youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 90830004c893e2d5f0643c05af064cfc7a3b579e
parent 18d7aa6efa6c85f1e07e4e1ecd42c7dd5fd7da99
Author: Sergey M․ <dstftw@gmail.com>
Date:   Mon, 19 Feb 2018 22:29:08 +0700

[sonyliv] Respect referrer (closes #15648)

Diffstat:
Myoutube_dl/extractor/sonyliv.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 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)