Skip to content

Commit

Permalink
[ie/BiliIntl] Fix referer header (yt-dlp#11003)
Browse files Browse the repository at this point in the history
Closes yt-dlp#10996
Authored by: Khaoklong51
  • Loading branch information
Khaoklong51 authored Sep 14, 2024
1 parent a555389 commit a06bb58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp/extractor/bilibili.py
Original file line number Diff line number Diff line change
Expand Up @@ -1852,7 +1852,7 @@ def _real_extract(self, url):
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)
Expand Down

0 comments on commit a06bb58

Please sign in to comment.