Fix alist
This commit is contained in:
parent
b8bba3f5fb
commit
c4215786e8
|
|
@ -103,7 +103,7 @@ public class AList extends Spider {
|
|||
|
||||
int count = 0;
|
||||
Drive drive = getDrive(key);
|
||||
for (Item item:files) if (item.isMedia(drive.isNew())) count++;
|
||||
for (Item item : files) if (item.isMedia(drive.isNew())) count++;
|
||||
if (count > 1) folders.add(0, Item.playList(files.get(0), vodPic));
|
||||
|
||||
for (Item item : folders) list.add(item.getVod(tid, vodPic));
|
||||
|
|
@ -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) {
|
||||
vod.setVodId(id);
|
||||
vod.setVodName(name);
|
||||
vod.setVodPic(vodPic);
|
||||
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);
|
||||
playUrls.add(item.getName() + "$" + item.getVodId(path) + findSubs(path, parents));
|
||||
vod.setVodId(item.getVodId(id));
|
||||
vod.setVodName(item.getName());
|
||||
vod.setVodPic(item.getPic(vodPic));
|
||||
vod.setVodPlayUrl(item.getName() + "$" + item.getVodId(path) + findSubs(path, parents));
|
||||
}
|
||||
|
||||
Vod vod = new Vod();
|
||||
vod.setVodId(id);
|
||||
vod.setVodName(name);
|
||||
vod.setVodPic(vodPic);
|
||||
vod.setVodPlayFrom(key);
|
||||
vod.setVodPlayUrl(TextUtils.join("#", playUrls));
|
||||
return Result.string(vod);
|
||||
}
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
17875e4db6cc760f260451ad7651e887
|
||||
91c9b5707a41ef60147a684a61089966
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;17875e4db6cc760f260451ad7651e887",
|
||||
"spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;91c9b5707a41ef60147a684a61089966",
|
||||
"wallpaper": "https://gao.chuqiuyu.tk",
|
||||
"sites": [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;17875e4db6cc760f260451ad7651e887",
|
||||
"spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;91c9b5707a41ef60147a684a61089966",
|
||||
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
|
||||
"sites": [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue