]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[sonyliv] Respect referrer (closes #15648)
authorSergey M․ <dstftw@gmail.com>
Mon, 19 Feb 2018 15:29:08 +0000 (22:29 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 19 Feb 2018 15:29:08 +0000 (22:29 +0700)
youtube_dl/extractor/sonyliv.py

index c3078e285799ab9d159a072d67bf560ee03bd25b..58a8c0d4ddb2f282241af2afad37e9d4b8403085 100644 (file)
@@ -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)