AList support music

This commit is contained in:
FongMi 2022-12-01 18:16:54 +08:00
parent 99841e62e0
commit 5f5ba0a318
6 changed files with 7 additions and 6 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

View File

@ -1,5 +1,5 @@
{
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;5013870b5cce8147c2a877f4da966cf0",
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;7d655c54d086110028be6074c85dce66",
"wallpaper": "https://gao.chuqiuyu.tk",
"lives": [
{

View File

@ -1,5 +1,5 @@
{
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;5013870b5cce8147c2a877f4da966cf0",
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;7d655c54d086110028be6074c85dce66",
"wallpaper": "http://www.kf666888.cn/api/tvbox/img",
"lives": [
{