[ie/BiliIntl] Fix referer header (#11003)
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Download Tests / Quick Download Tests (push) Has been cancelled
Download Tests / Full Download Tests (push) Has been cancelled
Quick Test / Core Test (push) Has been cancelled
Quick Test / Code check (push) Has been cancelled
Release (master) / release (push) Has been cancelled

Closes #10996
Authored by: Khaoklong51
This commit is contained in:
Khaoklong51 2024-09-14 23:19:17 +07:00 committed by GitHub
parent a555389c9b
commit a06bb58679
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1852,7 +1852,7 @@ class BiliBiliPlayerIE(InfoExtractor):
class BiliIntlBaseIE(InfoExtractor):
_API_URL = 'https://api.bilibili.tv/intl/gateway'
_NETRC_MACHINE = 'biliintl'
_HEADERS = {'Referer': 'https://www.bilibili.com/'}
_HEADERS = {'Referer': 'https://www.bilibili.tv/'}
def _call_api(self, endpoint, *args, **kwargs):
json = self._download_json(self._API_URL + endpoint, *args, **kwargs)