AList support music

This commit is contained in:
FongMi 2022-12-01 18:16:54 +08:00
parent bfacb8d313
commit 6bf89b4f0d
4 changed files with 5 additions and 4 deletions

View File

@ -93,8 +93,9 @@ public class Item {
return getType() == 1;
}
public boolean isVideo(boolean v3) {
return getType() == (v3 ? 2 : 3);
public boolean isMedia(boolean v3) {
if (v3) return getType() == 2 || getType() == 3;
return getType() == 3 || getType() == 4;
}
public boolean ignore(boolean v3) {

View File

@ -101,7 +101,7 @@ public class AList extends Spider {
Sorter.sort("name", "asc", parents);
List<String> playUrls = new ArrayList<>();
for (Item item : parents) {
if (item.isVideo(drive.isNew())) {
if (item.isMedia(drive.isNew())) {
playUrls.add(Trans.get(item.getName()) + "$" + item.getVodId(path) + findSubs(path, parents));
}
}

Binary file not shown.

View File

@ -1 +1 @@
5013870b5cce8147c2a877f4da966cf0
7d655c54d086110028be6074c85dce66