mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-22 06:00:00 +00:00
[ie/BiliIntl] Fix referer header (#11003)
Closes #10996 Authored by: Khaoklong51
This commit is contained in:
parent
a555389c9b
commit
a06bb58679
1 changed files with 1 additions and 1 deletions
|
@ -1852,7 +1852,7 @@ def _real_extract(self, url):
|
||||||
class BiliIntlBaseIE(InfoExtractor):
|
class BiliIntlBaseIE(InfoExtractor):
|
||||||
_API_URL = 'https://api.bilibili.tv/intl/gateway'
|
_API_URL = 'https://api.bilibili.tv/intl/gateway'
|
||||||
_NETRC_MACHINE = 'biliintl'
|
_NETRC_MACHINE = 'biliintl'
|
||||||
_HEADERS = {'Referer': 'https://www.bilibili.com/'}
|
_HEADERS = {'Referer': 'https://www.bilibili.tv/'}
|
||||||
|
|
||||||
def _call_api(self, endpoint, *args, **kwargs):
|
def _call_api(self, endpoint, *args, **kwargs):
|
||||||
json = self._download_json(self._API_URL + endpoint, *args, **kwargs)
|
json = self._download_json(self._API_URL + endpoint, *args, **kwargs)
|
||||||
|
|
Loading…
Reference in a new issue