Fix alist

This commit is contained in:
FongMi 2023-06-09 08:56:23 +08:00
parent 8f64c9f6c0
commit 27c83e3cdd
3 changed files with 13 additions and 10 deletions

View File

@ -120,23 +120,26 @@ public class AList extends Spider {
String path = id.substring(0, id.lastIndexOf("/"));
String name = path.substring(path.lastIndexOf("/") + 1);
Drive drive = getDrive(key);
List<String> playUrls = new ArrayList<>();
List<Item> parents = getList(path, false);
Sorter.sort("name", "asc", parents);
Vod vod = new Vod();
vod.setVodPlayFrom(key);
if (list) {
for (Item item : parents) if (item.isMedia(drive.isNew())) playUrls.add(item.getName() + "$" + item.getVodId(path) + findSubs(path, parents));
} else {
Item item = getDetail(id);
playUrls.add(item.getName() + "$" + item.getVodId(path) + findSubs(path, parents));
}
Vod vod = new Vod();
vod.setVodId(id);
vod.setVodName(name);
vod.setVodPic(vodPic);
vod.setVodPlayFrom(key);
List<String> playUrls = new ArrayList<>();
for (Item item : parents) if (item.isMedia(drive.isNew())) playUrls.add(item.getName() + "$" + item.getVodId(path) + findSubs(path, parents));
vod.setVodPlayUrl(TextUtils.join("#", playUrls));
} else {
Item item = getDetail(id);
vod.setVodId(item.getVodId(id));
vod.setVodName(item.getName());
vod.setVodPic(item.getPic(vodPic));
vod.setVodPlayUrl(item.getName() + "$" + item.getVodId(path) + findSubs(path, parents));
}
return Result.string(vod);
}

Binary file not shown.

View File

@ -1 +1 @@
17875e4db6cc760f260451ad7651e887
91c9b5707a41ef60147a684a61089966