Fix @ bug

This commit is contained in:
FongMi 2022-12-19 14:24:21 +08:00
parent 3bfa3d0be6
commit c7c38a9001
6 changed files with 9 additions and 9 deletions

View File

@ -198,15 +198,15 @@ public class AList extends Spider {
private String findSubs(String path, List<Item> items) { private String findSubs(String path, List<Item> items) {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
for (Item item : items) if (Misc.isSub(item.getExt())) sb.append("~~~").append(Trans.get(item.getName())).append("@").append(Misc.getSubMimeType(item.getExt())).append("@").append(item.getVodId(path)); for (Item item : items) if (Misc.isSub(item.getExt())) sb.append("~~~").append(Trans.get(item.getName())).append("@@@").append(Misc.getSubMimeType(item.getExt())).append("@@@").append(item.getVodId(path));
return sb.toString(); return sb.toString();
} }
private String getSub(String[] ids) { private String getSub(String[] ids) {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
for (String text : ids) { for (String text : ids) {
if (!text.contains("@")) continue; if (!text.contains("@@@")) continue;
String[] arr = text.split("@"); String[] arr = text.split("@@@");
sb.append(arr[0]).append("#").append(arr[1]).append("#").append(getDetail(arr[2]).getUrl()).append("$$$"); sb.append(arr[0]).append("#").append(arr[1]).append("#").append(getDetail(arr[2]).getUrl()).append("$$$");
} }
return Misc.substring(sb.toString(), 3); return Misc.substring(sb.toString(), 3);

View File

@ -151,7 +151,7 @@ public class Ali {
} else if (Misc.isSub(file.getExt())) { } else if (Misc.isSub(file.getExt())) {
String key = file.removeExt(); String key = file.removeExt();
if (!subMap.containsKey(key)) subMap.put(key, new ArrayList<>()); if (!subMap.containsKey(key)) subMap.put(key, new ArrayList<>());
subMap.get(key).add(key + "@" + file.getFileId() + "@" + file.getExt()); subMap.get(key).add(key + "@@@" + file.getFileId() + "@@@" + file.getExt());
} }
} }
if (item.getNextMarker().length() > 0) { if (item.getNextMarker().length() > 0) {
@ -208,8 +208,8 @@ public class Ali {
private String getSub(String shareId, String shareToken, String[] ids) { private String getSub(String shareId, String shareToken, String[] ids) {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
for (String text : ids) { for (String text : ids) {
if (!text.contains("@")) continue; if (!text.contains("@@@")) continue;
String[] arr = text.split("@"); String[] arr = text.split("@@@");
String url = Proxy.getUrl() + "?do=ali&type=sub&share_id=" + shareId + "&share_token=" + shareToken + "&file_id=" + arr[1]; String url = Proxy.getUrl() + "?do=ali&type=sub&share_id=" + shareId + "&share_token=" + shareToken + "&file_id=" + arr[1];
sb.append(Trans.get(arr[0])).append("#").append(Misc.getSubMimeType(arr[2])).append("#").append(url).append("$$$"); sb.append(Trans.get(arr[0])).append("#").append(Misc.getSubMimeType(arr[2])).append("#").append(url).append("$$$");
} }

Binary file not shown.

View File

@ -1 +1 @@
ab26f4c02fd48605758977c6004e316c c701ac2466579126d00de02842c21b75

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;ab26f4c02fd48605758977c6004e316c", "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;c701ac2466579126d00de02842c21b75",
"wallpaper": "https://gao.chuqiuyu.tk", "wallpaper": "https://gao.chuqiuyu.tk",
"lives": [ "lives": [
{ {

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;ab26f4c02fd48605758977c6004e316c", "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;c701ac2466579126d00de02842c21b75",
"wallpaper": "http://www.kf666888.cn/api/tvbox/img", "wallpaper": "http://www.kf666888.cn/api/tvbox/img",
"lives": [ "lives": [
{ {