Print api result
This commit is contained in:
parent
eb5b32dfd0
commit
0ad4d53731
|
|
@ -344,11 +344,14 @@ public class API {
|
|||
|
||||
public String getDownloadUrl(String fileId) {
|
||||
try {
|
||||
SpiderDebug.log("getDownloadUrl..." + fileId);
|
||||
tempIds.add(0, copy(fileId));
|
||||
JSONObject body = new JSONObject();
|
||||
body.put("file_id", tempIds.get(0));
|
||||
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) {
|
||||
Init.execute(this::deleteAll);
|
||||
e.printStackTrace();
|
||||
|
|
@ -360,6 +363,7 @@ public class API {
|
|||
|
||||
public String getPreviewUrl(String fileId, String flag) {
|
||||
try {
|
||||
SpiderDebug.log("getPreviewUrl..." + fileId);
|
||||
tempIds.add(0, copy(fileId));
|
||||
JSONObject body = new JSONObject();
|
||||
body.put("file_id", tempIds.get(0));
|
||||
|
|
@ -367,6 +371,7 @@ public class API {
|
|||
body.put("category", "live_transcoding");
|
||||
body.put("url_expire_sec", "14400");
|
||||
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");
|
||||
return getPreviewQuality(taskList, flag);
|
||||
} catch (Exception e) {
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
be7bb5c4900ed56f8cc189aeabf0a989
|
||||
b6ec08b3b229db2be16b5975104b7e56
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
"sites": [
|
||||
{
|
||||
|
|
@ -586,8 +586,7 @@
|
|||
"api": "csp_Push",
|
||||
"searchable": 1,
|
||||
"filterable": 1,
|
||||
"changeable": 0,
|
||||
"ext": "https://agit.ai/Yoursmile7/TVBox/raw/branch/master/token.txt"
|
||||
"changeable": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -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",
|
||||
"sites": [
|
||||
{
|
||||
|
|
@ -85,8 +85,7 @@
|
|||
"api": "csp_Paper",
|
||||
"searchable": 1,
|
||||
"filterable": 1,
|
||||
"changeable": 0,
|
||||
"ext": "影視天下第一"
|
||||
"changeable": 0
|
||||
},
|
||||
{
|
||||
"key": "七夜",
|
||||
|
|
@ -95,8 +94,7 @@
|
|||
"api": "csp_Dovx",
|
||||
"searchable": 1,
|
||||
"filterable": 0,
|
||||
"changeable": 0,
|
||||
"ext": "影視天下第一"
|
||||
"changeable": 0
|
||||
},
|
||||
{
|
||||
"key": "易搜",
|
||||
|
|
@ -105,8 +103,7 @@
|
|||
"api": "csp_YiSo",
|
||||
"searchable": 1,
|
||||
"filterable": 0,
|
||||
"changeable": 0,
|
||||
"ext": "影視天下第一"
|
||||
"changeable": 0
|
||||
},
|
||||
{
|
||||
"key": "盤搜",
|
||||
|
|
@ -115,8 +112,7 @@
|
|||
"api": "csp_PanSou",
|
||||
"searchable": 1,
|
||||
"filterable": 0,
|
||||
"changeable": 0,
|
||||
"ext": "影視天下第一"
|
||||
"changeable": 0
|
||||
},
|
||||
{
|
||||
"key": "UP雲搜",
|
||||
|
|
@ -125,8 +121,7 @@
|
|||
"api": "csp_UpYun",
|
||||
"searchable": 1,
|
||||
"filterable": 0,
|
||||
"changeable": 0,
|
||||
"ext": "影視天下第一"
|
||||
"changeable": 0
|
||||
},
|
||||
{
|
||||
"key": "找資源",
|
||||
|
|
@ -145,8 +140,7 @@
|
|||
"api": "csp_Push",
|
||||
"searchable": 1,
|
||||
"filterable": 0,
|
||||
"changeable": 0,
|
||||
"ext": "影視天下第一"
|
||||
"changeable": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue