From 30d6c642f94d19b979cc4ea3461db1fea1901a6b Mon Sep 17 00:00:00 2001 From: OneCloud Date: Sat, 16 Dec 2023 23:17:22 +0800 Subject: [PATCH] [bilibili] api url update. --- src/you_get/extractors/bilibili.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/you_get/extractors/bilibili.py b/src/you_get/extractors/bilibili.py index 6335e6dd..b4e241c5 100644 --- a/src/you_get/extractors/bilibili.py +++ b/src/you_get/extractors/bilibili.py @@ -100,7 +100,8 @@ class Bilibili(VideoExtractor): appkey, sec = ''.join([chr(ord(i) + 2) for i in entropy[::-1]]).split(':') params = 'appkey=%s&cid=%s&otype=json&qn=%s&quality=%s&type=' % (appkey, cid, qn, qn) chksum = hashlib.md5(bytes(params + sec, 'utf8')).hexdigest() - return 'https://interface.bilibili.com/v2/playurl?%s&sign=%s' % (params, chksum) + return 'https://api.bilibili.com/x/player/wbi/v2?%s&sign=%s' % (params, chksum) + @staticmethod def bilibili_live_api(cid):