diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-06-20 10:14:12 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-06-20 11:44:57 +0530 |
commit | 6d1b34896e69c4e53d8f960bf4b3867bca1c129c (patch) | |
tree | 22e23a19e0139a297736e64481790477b956dd70 /yt_dlp/extractor/bilibili.py | |
parent | 7b2c3f47c6b586a208655fcfc716bba3f8619d1e (diff) | |
download | hypervideo-pre-6d1b34896e69c4e53d8f960bf4b3867bca1c129c.tar.lz hypervideo-pre-6d1b34896e69c4e53d8f960bf4b3867bca1c129c.tar.xz hypervideo-pre-6d1b34896e69c4e53d8f960bf4b3867bca1c129c.zip |
Update to ytdl-commit-8a158a9
[NHK] Use new API URL
https://github.com/ytdl-org/youtube-dl/commit/6508688e88c83bb811653083db9351702cd39a6a
Closes #2337, Closes #4063
Diffstat (limited to 'yt_dlp/extractor/bilibili.py')
-rw-r--r-- | yt_dlp/extractor/bilibili.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/yt_dlp/extractor/bilibili.py b/yt_dlp/extractor/bilibili.py index 2912e0cad..6879ca2e7 100644 --- a/yt_dlp/extractor/bilibili.py +++ b/yt_dlp/extractor/bilibili.py @@ -677,6 +677,11 @@ class BilibiliAudioIE(BilibiliAudioBaseIE): 'vcodec': 'none' }] + 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 {} |