Browse Source

[extractor/bilibili] Fix path "/audio/auxxxxx" download return 403

pull/30809/head
lihan7 5 months ago committed by dirkf
parent
commit
17d295a1ec
  1. 5
      youtube_dl/extractor/bilibili.py

5
youtube_dl/extractor/bilibili.py

@ -369,6 +369,11 @@ class BilibiliAudioIE(BilibiliAudioBaseIE):
'filesize': int_or_none(play_data.get('size')),
}]
for a_format in formats:
a_format.setdefault('http_headers', {}).update({
'Referer': url,
})
song = self._call_api('song/info', au_id)
title = song['title']
statistic = song.get('statistic') or {}

Loading…
Cancel
Save