Skip to content

Commit

Permalink
[bilibili] api url update.
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhanyu committed Dec 16, 2023
1 parent 9f38d7d commit 30d6c64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/you_get/extractors/bilibili.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def bilibili_interface_api(cid, qn=0):
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):
Expand Down

0 comments on commit 30d6c64

Please sign in to comment.