mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 05:25:02 +03:00
[bilibili] api url update.
This commit is contained in:
parent
9f38d7d76f
commit
30d6c642f9
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user