[bilibili] fix video info extraction(closes #28341)
authorRemita Amine <remitamine@gmail.com>
Mon, 8 Mar 2021 15:53:50 +0000 (16:53 +0100)
committerRemita Amine <remitamine@gmail.com>
Mon, 8 Mar 2021 15:53:50 +0000 (16:53 +0100)
youtube_dl/extractor/bilibili.py

index 4dc597e160bcea4f0821719dc82e2908f20d1972..589fdc1ce5a8de04ecb54ad44f76518e5e44d510 100644 (file)
@@ -156,6 +156,7 @@ class BiliBiliIE(InfoExtractor):
             cid = js['result']['cid']
 
         headers = {
+            'Accept': 'application/json',
             'Referer': url
         }
         headers.update(self.geo_verification_headers())