This commit is contained in:
GH Action - Upstream Sync 2023-04-17 12:33:11 +00:00
commit cf6bffff2a
5 changed files with 16 additions and 18 deletions

View File

@ -344,11 +344,14 @@ public class API {
public String getDownloadUrl(String fileId) { public String getDownloadUrl(String fileId) {
try { try {
SpiderDebug.log("getDownloadUrl..." + fileId);
tempIds.add(0, copy(fileId)); tempIds.add(0, copy(fileId));
JSONObject body = new JSONObject(); JSONObject body = new JSONObject();
body.put("file_id", tempIds.get(0)); body.put("file_id", tempIds.get(0));
body.put("drive_id", user.getDriveId()); body.put("drive_id", user.getDriveId());
return new JSONObject(oauth("openFile/getDownloadUrl", body.toString(), true)).getString("url"); String json = oauth("openFile/getDownloadUrl", body.toString(), true);
SpiderDebug.log(json);
return new JSONObject(json).getString("url");
} catch (Exception e) { } catch (Exception e) {
Init.execute(this::deleteAll); Init.execute(this::deleteAll);
e.printStackTrace(); e.printStackTrace();
@ -360,6 +363,7 @@ public class API {
public String getPreviewUrl(String fileId, String flag) { public String getPreviewUrl(String fileId, String flag) {
try { try {
SpiderDebug.log("getPreviewUrl..." + fileId);
tempIds.add(0, copy(fileId)); tempIds.add(0, copy(fileId));
JSONObject body = new JSONObject(); JSONObject body = new JSONObject();
body.put("file_id", tempIds.get(0)); body.put("file_id", tempIds.get(0));
@ -367,6 +371,7 @@ public class API {
body.put("category", "live_transcoding"); body.put("category", "live_transcoding");
body.put("url_expire_sec", "14400"); body.put("url_expire_sec", "14400");
String json = oauth("openFile/getVideoPreviewPlayInfo", body.toString(), true); String json = oauth("openFile/getVideoPreviewPlayInfo", body.toString(), true);
SpiderDebug.log(json);
JSONArray taskList = new JSONObject(json).getJSONObject("video_preview_play_info").getJSONArray("live_transcoding_task_list"); JSONArray taskList = new JSONObject(json).getJSONObject("video_preview_play_info").getJSONArray("live_transcoding_task_list");
return getPreviewQuality(taskList, flag); return getPreviewQuality(taskList, flag);
} catch (Exception e) { } catch (Exception e) {

Binary file not shown.

View File

@ -1 +1 @@
be7bb5c4900ed56f8cc189aeabf0a989 b6ec08b3b229db2be16b5975104b7e56

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;be7bb5c4900ed56f8cc189aeabf0a989", "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;b6ec08b3b229db2be16b5975104b7e56",
"wallpaper": "https://gao.chuqiuyu.tk", "wallpaper": "https://gao.chuqiuyu.tk",
"sites": [ "sites": [
{ {
@ -586,8 +586,7 @@
"api": "csp_Push", "api": "csp_Push",
"searchable": 1, "searchable": 1,
"filterable": 1, "filterable": 1,
"changeable": 0, "changeable": 0
"ext": "https://agit.ai/Yoursmile7/TVBox/raw/branch/master/token.txt"
} }
] ]
} }

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;be7bb5c4900ed56f8cc189aeabf0a989", "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;b6ec08b3b229db2be16b5975104b7e56",
"wallpaper": "http://饭太硬.ga/深色壁纸/api.php", "wallpaper": "http://饭太硬.ga/深色壁纸/api.php",
"sites": [ "sites": [
{ {
@ -85,8 +85,7 @@
"api": "csp_Paper", "api": "csp_Paper",
"searchable": 1, "searchable": 1,
"filterable": 1, "filterable": 1,
"changeable": 0, "changeable": 0
"ext": "影視天下第一"
}, },
{ {
"key": "七夜", "key": "七夜",
@ -95,8 +94,7 @@
"api": "csp_Dovx", "api": "csp_Dovx",
"searchable": 1, "searchable": 1,
"filterable": 0, "filterable": 0,
"changeable": 0, "changeable": 0
"ext": "影視天下第一"
}, },
{ {
"key": "易搜", "key": "易搜",
@ -105,8 +103,7 @@
"api": "csp_YiSo", "api": "csp_YiSo",
"searchable": 1, "searchable": 1,
"filterable": 0, "filterable": 0,
"changeable": 0, "changeable": 0
"ext": "影視天下第一"
}, },
{ {
"key": "盤搜", "key": "盤搜",
@ -115,8 +112,7 @@
"api": "csp_PanSou", "api": "csp_PanSou",
"searchable": 1, "searchable": 1,
"filterable": 0, "filterable": 0,
"changeable": 0, "changeable": 0
"ext": "影視天下第一"
}, },
{ {
"key": "UP雲搜", "key": "UP雲搜",
@ -125,8 +121,7 @@
"api": "csp_UpYun", "api": "csp_UpYun",
"searchable": 1, "searchable": 1,
"filterable": 0, "filterable": 0,
"changeable": 0, "changeable": 0
"ext": "影視天下第一"
}, },
{ {
"key": "找資源", "key": "找資源",
@ -145,8 +140,7 @@
"api": "csp_Push", "api": "csp_Push",
"searchable": 1, "searchable": 1,
"filterable": 0, "filterable": 0,
"changeable": 0, "changeable": 0
"ext": "影視天下第一"
} }
] ]
} }