Browse Source

[sonyliv] Respect referrer (closes #15648)

Sergey M․ 7 years ago
parent
commit
90830004c8
1 changed files with 4 additions and 1 deletions
  1. 4 1
      youtube_dl/extractor/sonyliv.py

+ 4 - 1
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)