Alist support mpg

This commit is contained in:
FongMi 2023-05-12 17:08:26 +08:00
parent a6adad3dcc
commit c56a6c1282
5 changed files with 5 additions and 4 deletions

View File

@ -94,12 +94,13 @@ public class Item {
} }
public boolean isMedia(boolean isNew) { public boolean isMedia(boolean isNew) {
if (getName().endsWith(".ts") || getName().endsWith(".mpg")) return true;
if (isNew) return getType() == 2 || getType() == 3; if (isNew) return getType() == 2 || getType() == 3;
return getType() == 3 || getType() == 4; return getType() == 3 || getType() == 4;
} }
public boolean ignore(boolean isNew) { public boolean ignore(boolean isNew) {
if (getName().endsWith(".ts")) return false; if (getName().endsWith(".ts") || getName().endsWith(".mpg")) return false;
if (isNew) return getType() == 0 || getType() == 4; if (isNew) return getType() == 0 || getType() == 4;
return getType() == 0 || getType() == 2 || getType() == 5; return getType() == 0 || getType() == 2 || getType() == 5;
} }

Binary file not shown.

View File

@ -1 +1 @@
c0dd741debca724250c91df251fdb2cf 836941085af643869ef5e0d9dce6d301

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;c0dd741debca724250c91df251fdb2cf", "spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;836941085af643869ef5e0d9dce6d301",
"wallpaper": "https://gao.chuqiuyu.tk", "wallpaper": "https://gao.chuqiuyu.tk",
"sites": [ "sites": [
{ {

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;c0dd741debca724250c91df251fdb2cf", "spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;836941085af643869ef5e0d9dce6d301",
"wallpaper": "http://饭太硬.ga/深色壁纸/api.php", "wallpaper": "http://饭太硬.ga/深色壁纸/api.php",
"sites": [ "sites": [
{ {