Update alist

This commit is contained in:
FongMi 2022-12-22 09:41:40 +08:00
parent fc8688bce6
commit 2a1f7c055e
4 changed files with 6 additions and 2 deletions

View File

@ -126,4 +126,8 @@ public class Item {
public Vod getVod(String id) { public Vod getVod(String id) {
return new Vod(getVodId(id), getName(), getPic(), getRemark(), getVodTag()); return new Vod(getVodId(id), getName(), getPic(), getRemark(), getVodTag());
} }
public Vod getVod(Drive drive) {
return new Vod(getVodId(drive.getName()), getName(), getPic(), drive.getName(), getVodTag());
}
} }

View File

@ -164,7 +164,7 @@ public class AList extends Spider {
try { try {
String response = OkHttpUtil.postJson(drive.searchApi(), drive.params(keyword)); String response = OkHttpUtil.postJson(drive.searchApi(), drive.params(keyword));
List<Item> items = Item.arrayFrom(getSearchJson(drive.isNew(), response)); List<Item> items = Item.arrayFrom(getSearchJson(drive.isNew(), response));
for (Item item : items) if (!item.ignore(drive.isNew())) list.add(item.getVod(drive.getName())); for (Item item : items) if (!item.ignore(drive.isNew())) list.add(item.getVod(drive));
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} finally { } finally {

Binary file not shown.

View File

@ -1 +1 @@
a6b119b4d3bbb3efdf4c373e76305239 8211cf471a24a780127bf9e96ebd32ff