From 6d1b34896e69c4e53d8f960bf4b3867bca1c129c Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 20 Jun 2022 10:14:12 +0530 Subject: Update to ytdl-commit-8a158a9 [NHK] Use new API URL https://github.com/ytdl-org/youtube-dl/commit/6508688e88c83bb811653083db9351702cd39a6a Closes #2337, Closes #4063 --- yt_dlp/extractor/bilibili.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'yt_dlp/extractor/bilibili.py') 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 {} -- cgit v1.2.3