1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-22 10:11:52 +00:00

[sonyliv] Respect referrer (closes #15648)

This commit is contained in:
Sergey M․ 2018-02-19 22:29:08 +07:00
parent 18d7aa6efa
commit 90830004c8
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View 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)