summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRemita Amine <[email protected]>2021-03-08 16:53:50 +0100
committerRemita Amine <[email protected]>2021-03-08 16:53:50 +0100
commitc6a14755bb9629967fb12536ee8660ca67ff4345 (patch)
tree724a802f1d6532ed1e7ec8789e792253a6d07f51
parent7f064d50db957d551dccde73ab73318f53ab3b17 (diff)
downloadyoutube-dl-c6a14755bb9629967fb12536ee8660ca67ff4345.tar.gz
youtube-dl-c6a14755bb9629967fb12536ee8660ca67ff4345.zip
[bilibili] fix video info extraction(closes #28341)
-rw-r--r--youtube_dl/extractor/bilibili.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/extractor/bilibili.py b/youtube_dl/extractor/bilibili.py
index 4dc597e16..589fdc1ce 100644
--- a/youtube_dl/extractor/bilibili.py
+++ b/youtube_dl/extractor/bilibili.py
@@ -156,6 +156,7 @@ class BiliBiliIE(InfoExtractor):
cid = js['result']['cid']
headers = {
+ 'Accept': 'application/json',
'Referer': url
}
headers.update(self.geo_verification_headers())