1
0
Fork 0

Update to ytdl-commit-8a158a9

[NHK] Use new API URL
6508688e88

Closes #2337, Closes #4063
This commit is contained in:
pukkandan 2022-06-20 10:14:12 +05:30
commit 6d1b34896e
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
12 changed files with 295 additions and 154 deletions

View file

@ -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 {}