Skip to content

Commit

Permalink
[ie/BilibiliSpaceVideo] Fix extraction (#9905)
Browse files Browse the repository at this point in the history
Closes #9892
Authored by: c-basalt
  • Loading branch information
c-basalt committed May 10, 2024
1 parent 3c7a287 commit 4cc99d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yt_dlp/extractor/bilibili.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,8 @@ def fetch_page(page_idx):

try:
response = self._download_json('https://api.bilibili.com/x/space/wbi/arc/search',
playlist_id, note=f'Downloading page {page_idx}', query=query)
playlist_id, note=f'Downloading page {page_idx}', query=query,
headers={'referer': url})
except ExtractorError as e:
if isinstance(e.cause, HTTPError) and e.cause.status == 412:
raise ExtractorError(
Expand Down

0 comments on commit 4cc99d7

Please sign in to comment.