夸克盘扫码

This commit is contained in:
lushunming 2024-09-02 14:41:21 +08:00
parent cc001735e0
commit b1f7cc4562
7 changed files with 9 additions and 8 deletions

View File

@ -418,13 +418,13 @@ public class QuarkApi {
getShareToken(new ShareData(shareId, null));
if (!this.shareTokenCache.containsKey(shareId)) return null;
}
Type type = new TypeToken<ApiResponse<Map<String, String>>>() {
Type type = new TypeToken<ApiResponse<HashMap<String, String>>>() {
}.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);
if (saveResult.getData() != null && (saveResult.getData()).get("task_id") != null) {
int retry = 0;
while (true) {
Type type2 = new TypeToken<ApiResponse<Map<String, Object>>>() {
Type type2 = new TypeToken<ApiResponse<HashMap<String, Object>>>() {
}.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);
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) {
@ -444,7 +444,7 @@ public class QuarkApi {
if (saveFileId == null) return null;
this.saveFileIdCaches.put(fileId, saveFileId);
}
Type type2 = new TypeToken<ApiResponse<Map<String, Object>>>() {
Type type2 = new TypeToken<ApiResponse<HashMap<String, Object>>>() {
}.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);
if (transcoding.getData() != null && (transcoding.getData()).get("video_list") != null) {

View File

@ -19,4 +19,5 @@ android.enableJetifier=true
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.nonTransitiveRClass=true
android.enableR8.fullMode=false

Binary file not shown.

View File

@ -1 +1 @@
4537aa56277df82697b60bf7f0c0ed1c
7fe0986610b192cfb6454b8d079d3ea9

View File

@ -1,5 +1,5 @@
{
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;4537aa56277df82697b60bf7f0c0ed1c",
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;7fe0986610b192cfb6454b8d079d3ea9",
"lives": [
{
"name": "直播ipv6",

View File

@ -1,5 +1,5 @@
{
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;4537aa56277df82697b60bf7f0c0ed1c",
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;7fe0986610b192cfb6454b8d079d3ea9",
"lives": [
{
"name": "直播ipv6",

View File

@ -1,5 +1,5 @@
{
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;4537aa56277df82697b60bf7f0c0ed1c",
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;7fe0986610b192cfb6454b8d079d3ea9",
"lives": [
{
"name": "直播ipv6",