AList support music
This commit is contained in:
parent
bfacb8d313
commit
6bf89b4f0d
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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.
|
|
@ -1 +1 @@
|
|||
5013870b5cce8147c2a877f4da966cf0
|
||||
7d655c54d086110028be6074c85dce66
|
||||
|
|
|
|||
Loading…
Reference in New Issue