更新B站下载视频接口
This commit is contained in:
@@ -31,7 +31,13 @@ public class BiliBiliWbiSign {
|
||||
body.put("w_rid", AppTools.getMD5(params + genMixinKey(rawWbiKey)));
|
||||
return body;
|
||||
}
|
||||
|
||||
public static TreeMap<String, String> getWbiSign(JSONObject json) {
|
||||
TreeMap<String, String> body=new TreeMap<>();
|
||||
for (String key : json.keySet()) {
|
||||
body.put(key, json.getString(key));
|
||||
}
|
||||
return getWbiSign(body);
|
||||
}
|
||||
private static String genMixinKey(String rawWbiKey) {
|
||||
byte[] rawBytes = rawWbiKey.getBytes(StandardCharsets.UTF_8);
|
||||
byte[] mixinKey = new byte[32];
|
||||
@@ -71,4 +77,6 @@ public class BiliBiliWbiSign {
|
||||
//https://api.bilibili.com/x/web-interface/view/conclusion/get?bvid=BV1L94y1H7CV&cid=1335073288&up_mid=297242063&web_location=333.788&w_rid=a5d90f60ac6b6b6fc9d49be3ba3fee53&wts=1705394671
|
||||
//updateRawWbiKey();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user