Skip to content

Commit

Permalink
Merge pull request #16 from lushunming/master
Browse files Browse the repository at this point in the history
夸克vip bug
  • Loading branch information
Greatwallcorner authored Oct 22, 2024
2 parents b47bf8e + e1e22aa commit b40b391
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
Binary file modified jar/spider.jar
Binary file not shown.
10 changes: 9 additions & 1 deletion json/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"spider": "../jar/spider.jar;md5;58848cd724e2f9a14f4e61eff7f4d7c5",
"spider": "../jar/spider.jar;md5;d8564a11c706a4d1ab71872f12a91c32",
"sites": [
{
"key": "Douban",
Expand Down Expand Up @@ -27,6 +27,14 @@
"searchable": 1,
"changeable": 0,
"ext": {}
}, {
"key": "KuaKeBa",
"name": "夸克吧",
"type": 3,
"api": "csp_KuaKeBa",
"searchable": 1,
"changeable": 1,
"ext": {}
},
{
"key": "glod",
Expand Down
2 changes: 1 addition & 1 deletion json/configAll.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"spider": "../jar/spider.jar;md5;58848cd724e2f9a14f4e61eff7f4d7c5",
"spider": "../jar/spider.jar;md5;d8564a11c706a4d1ab71872f12a91c32",
"sites": [
{
"key": "Douban",
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/github/catvod/api/QuarkApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ public ShareData getShareData(String url) {

private boolean getVip() throws Exception {
Map<String, Object> listData = Json.parseSafe(api("member?pr=ucpro&fr=pc&uc_param_str=&fetch_subscribe=true&_ch=home&fetch_identity=true", null, null, 0, "GET"), Map.class);
return "EXP_SVIP".equals(((Map<String, String>) listData.get("data")).get("member_type"));
return ((Map<String, String>) listData.get("data")).get("member_type").contains("VIP");

}

public List<String> getPlayFormatList() {
Expand Down

0 comments on commit b40b391

Please sign in to comment.