This commit is contained in:
GH Action - Upstream Sync 2023-04-24 01:21:51 +00:00
commit e2c8110838
5 changed files with 11 additions and 8 deletions

View File

@ -403,11 +403,14 @@ public class API {
} }
private void delete(String fileId) { private void delete(String fileId) {
SpiderDebug.log("Delete..." + fileId); try {
String json = "{\"requests\":[{\"body\":{\"drive_id\":\"%s\",\"file_id\":\"%s\"},\"headers\":{\"Content-Type\":\"application/json\"},\"id\":\"%s\",\"method\":\"POST\",\"url\":\"/file/delete\"}],\"resource\":\"file\"}"; SpiderDebug.log("Delete..." + fileId);
json = String.format(json, user.getDriveId(), fileId, fileId); String json = "{\"requests\":[{\"body\":{\"drive_id\":\"%s\",\"file_id\":\"%s\"},\"headers\":{\"Content-Type\":\"application/json\"},\"id\":\"%s\",\"method\":\"POST\",\"url\":\"/file/delete\"}],\"resource\":\"file\"}";
String result = auth("adrive/v2/batch", json, true); json = String.format(json, user.getDriveId(), fileId, fileId);
if (result.length() == 211) tempIds.remove(fileId); String result = auth("adrive/v2/batch", json, true);
if (result.length() == 211) tempIds.remove(fileId);
} catch (Exception ignored) {
}
} }
public Object[] proxySub(Map<String, String> params) { public Object[] proxySub(Map<String, String> params) {

Binary file not shown.

View File

@ -1 +1 @@
d255d424916b37d2329cbfd8dd8b2119 7338bb6f1e1e684c77f5db38b81aff45

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;d255d424916b37d2329cbfd8dd8b2119", "spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;7338bb6f1e1e684c77f5db38b81aff45",
"wallpaper": "https://gao.chuqiuyu.tk", "wallpaper": "https://gao.chuqiuyu.tk",
"sites": [ "sites": [
{ {

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;d255d424916b37d2329cbfd8dd8b2119", "spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;7338bb6f1e1e684c77f5db38b81aff45",
"wallpaper": "http://饭太硬.ga/深色壁纸/api.php", "wallpaper": "http://饭太硬.ga/深色壁纸/api.php",
"sites": [ "sites": [
{ {