夸克盘扫码

This commit is contained in:
lushunming 2024-09-03 07:19:01 +08:00
parent 3c3709a913
commit f7fb8d1fbd
7 changed files with 7 additions and 10 deletions

View File

@ -41,6 +41,3 @@
public static ** valueOf(java.lang.String); public static ** valueOf(java.lang.String);
} }
-keepclassmembers class com.github.catvod.bean.quark.** {
<init>();
}

View File

@ -420,13 +420,13 @@ public class QuarkApi {
} }
Type type = new TypeToken<ApiResponse<HashMap<String, String>>>() { Type type = new TypeToken<ApiResponse<HashMap<String, String>>>() {
}.getType(); }.getType();
ApiResponse<Map<String, String>> saveResult = Json.parseSafe(api("share/sharepage/save?" + this.pr, null, Map.of("fid_list", List.of(fileId), "fid_token_list", List.of(fileToken), "to_pdir_fid", this.saveDirId, "pwd_id", shareId, "stoken", stoken != null ? stoken : (String) this.shareTokenCache.get(shareId).get("stoken"), "pdir_fid", "0", "scene", "link"), 0, "POST"), type); ApiResponse<HashMap<String, String>> saveResult = Json.parseSafe(api("share/sharepage/save?" + this.pr, null, Map.of("fid_list", List.of(fileId), "fid_token_list", List.of(fileToken), "to_pdir_fid", this.saveDirId, "pwd_id", shareId, "stoken", stoken != null ? stoken : (String) this.shareTokenCache.get(shareId).get("stoken"), "pdir_fid", "0", "scene", "link"), 0, "POST"), type);
if (saveResult.getData() != null && (saveResult.getData()).get("task_id") != null) { if (saveResult.getData() != null && (saveResult.getData()).get("task_id") != null) {
int retry = 0; int retry = 0;
while (true) { while (true) {
Type type2 = new TypeToken<ApiResponse<HashMap<String, Object>>>() { Type type2 = new TypeToken<ApiResponse<HashMap<String, Object>>>() {
}.getType(); }.getType();
ApiResponse<Map<String, Object>> taskResult = Json.parseSafe(api("task?" + this.pr + "&task_id=" + (saveResult.getData()).get("task_id") + "&retry_index=" + retry, Collections.emptyMap(), Collections.emptyMap(), 0, "GET"), type2); ApiResponse<HashMap<String, Object>> taskResult = Json.parseSafe(api("task?" + this.pr + "&task_id=" + (saveResult.getData()).get("task_id") + "&retry_index=" + retry, Collections.emptyMap(), Collections.emptyMap(), 0, "GET"), type2);
if (taskResult.getData() != null && taskResult.getData().get("save_as") != null && ((Map<String, Object>) taskResult.getData().get("save_as")).get("save_as_top_fids") != null && ((List<String>) ((Map<String, Object>) ((Map<String, Object>) taskResult.getData()).get("save_as")).get("save_as_top_fids")).size() > 0) { if (taskResult.getData() != null && taskResult.getData().get("save_as") != null && ((Map<String, Object>) taskResult.getData().get("save_as")).get("save_as_top_fids") != null && ((List<String>) ((Map<String, Object>) ((Map<String, Object>) taskResult.getData()).get("save_as")).get("save_as_top_fids")).size() > 0) {
return ((List<String>) ((Map<String, Object>) (taskResult.getData()).get("save_as")).get("save_as_top_fids")).get(0); return ((List<String>) ((Map<String, Object>) (taskResult.getData()).get("save_as")).get("save_as_top_fids")).get(0);
} }
@ -446,7 +446,7 @@ public class QuarkApi {
} }
Type type2 = new TypeToken<ApiResponse<HashMap<String, Object>>>() { Type type2 = new TypeToken<ApiResponse<HashMap<String, Object>>>() {
}.getType(); }.getType();
ApiResponse<Map<String, Object>> transcoding = Json.parseSafe(api("file/v2/play?" + this.pr, Collections.emptyMap(), Map.of("fid", this.saveFileIdCaches.get(fileId), "resolutions", "normal,low,high,super,2k,4k", "supports", "fmp4"), 0, "POST"), type2); ApiResponse<HashMap<String, Object>> transcoding = Json.parseSafe(api("file/v2/play?" + this.pr, Collections.emptyMap(), Map.of("fid", this.saveFileIdCaches.get(fileId), "resolutions", "normal,low,high,super,2k,4k", "supports", "fmp4"), 0, "POST"), type2);
if (transcoding.getData() != null && (transcoding.getData()).get("video_list") != null) { if (transcoding.getData() != null && (transcoding.getData()).get("video_list") != null) {
String flagId = flag.split("-")[flag.split("-").length - 1]; String flagId = flag.split("-")[flag.split("-").length - 1];
int index = Util.findAllIndexes(getPlayFormatList(), flagId); int index = Util.findAllIndexes(getPlayFormatList(), flagId);

Binary file not shown.

View File

@ -1 +1 @@
6435dcbc53a962c3b1b795b8141e9668 674ee11b16c388f01c57a5dcbdf96ed7

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;6435dcbc53a962c3b1b795b8141e9668", "spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;674ee11b16c388f01c57a5dcbdf96ed7",
"lives": [ "lives": [
{ {
"name": "直播ipv6", "name": "直播ipv6",

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;6435dcbc53a962c3b1b795b8141e9668", "spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;674ee11b16c388f01c57a5dcbdf96ed7",
"lives": [ "lives": [
{ {
"name": "直播ipv6", "name": "直播ipv6",

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;6435dcbc53a962c3b1b795b8141e9668", "spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;674ee11b16c388f01c57a5dcbdf96ed7",
"lives": [ "lives": [
{ {
"name": "直播ipv6", "name": "直播ipv6",