Fix @ bug

This commit is contained in:
FongMi 2022-12-19 14:24:21 +08:00
parent c3b37a7453
commit 904a9fd8cb
4 changed files with 7 additions and 7 deletions

View File

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

View File

@ -151,7 +151,7 @@ public class Ali {
} else if (Misc.isSub(file.getExt())) {
String key = file.removeExt();
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) {
@ -208,8 +208,8 @@ public class Ali {
private String getSub(String shareId, String shareToken, String[] ids) {
StringBuilder sb = new StringBuilder();
for (String text : ids) {
if (!text.contains("@")) continue;
String[] arr = text.split("@");
if (!text.contains("@@@")) continue;
String[] arr = text.split("@@@");
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("$$$");
}

Binary file not shown.

View File

@ -1 +1 @@
ab26f4c02fd48605758977c6004e316c
c701ac2466579126d00de02842c21b75