This commit is contained in:
GH Action - Upstream Sync 2023-01-05 01:35:03 +00:00
commit 8dac99985f
6 changed files with 26 additions and 18 deletions

View File

@ -6,6 +6,7 @@ import com.github.catvod.utils.Misc;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
@ -29,6 +30,8 @@ public class Item {
private String category;
@SerializedName("size")
private double size;
@SerializedName("parent")
private String parent;
public static Item objectFrom(String str) {
return new Gson().fromJson(str, Item.class);
@ -50,10 +53,6 @@ public class Item {
return TextUtils.isEmpty(fileId) ? "" : fileId;
}
public String getShareId() {
return TextUtils.isEmpty(shareId) ? "" : shareId;
}
public String getName() {
return TextUtils.isEmpty(name) ? "" : name;
}
@ -70,12 +69,21 @@ public class Item {
return TextUtils.isEmpty(category) ? "" : category;
}
public double getSize() {
return size;
public String getSize() {
return size == 0 ? "" : "[" + Misc.getSize(size) + "]";
}
public String getParent() {
return TextUtils.isEmpty(parent) ? "" : "[" + parent + "]";
}
public Item parent(String parent) {
this.parent = parent;
return this;
}
public String getDisplayName() {
return getSize() == 0 ? getName() : "[" + Misc.getSize(getSize()) + "] " + getName();
return TextUtils.join(" ", Arrays.asList(getParent(), getName(), getSize())).trim();
}
public String removeExt() {

View File

@ -155,7 +155,7 @@ public class Ali {
if (file.getType().equals("folder")) {
folders.add(file);
} else if (file.getCategory().equals("video") || file.getCategory().equals("audio")) {
files.add(file);
files.add(file.parent(parent.getName()));
} else if (Misc.isSub(file.getExt())) {
String key = file.removeExt();
if (!subMap.containsKey(key)) subMap.put(key, new ArrayList<>());

Binary file not shown.

View File

@ -1 +1 @@
b6cec380ddab899d275cf2fec2ed676a
bad875495a9d88aeb0dc1744e9c85feb

View File

@ -1,5 +1,5 @@
{
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;b6cec380ddab899d275cf2fec2ed676a",
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;bad875495a9d88aeb0dc1744e9c85feb",
"wallpaper": "https://gao.chuqiuyu.tk",
"lives": [
{
@ -618,7 +618,7 @@
"api": "csp_Push",
"searchable": 1,
"filterable": 1,
"ext": "http://ali.饭太硬.ml/tok"
"ext": "http://我不是.肥猫.love:63/token.php"
}
]
}

View File

@ -1,5 +1,5 @@
{
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;b6cec380ddab899d275cf2fec2ed676a",
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;bad875495a9d88aeb0dc1744e9c85feb",
"wallpaper": "http://www.kf666888.cn/api/tvbox/img",
"lives": [
{
@ -123,7 +123,7 @@
"api": "csp_Paper",
"searchable": 1,
"filterable": 1,
"ext": "http://ali.饭太硬.ml/tok"
"ext": "http://我不是.肥猫.love:63/token.php"
},
{
"key": "易搜",
@ -132,7 +132,7 @@
"api": "csp_YiSo",
"searchable": 1,
"filterable": 0,
"ext": "http://ali.饭太硬.ml/tok"
"ext": "http://我不是.肥猫.love:63/token.php"
},
{
"key": "盤搜",
@ -141,7 +141,7 @@
"api": "csp_PanSou",
"searchable": 1,
"filterable": 0,
"ext": "http://ali.饭太硬.ml/tok"
"ext": "http://我不是.肥猫.love:63/token.php"
},
{
"key": "UP雲搜",
@ -150,7 +150,7 @@
"api": "csp_UpYun",
"searchable": 1,
"filterable": 0,
"ext": "http://ali.饭太硬.ml/tok"
"ext": "http://我不是.肥猫.love:63/token.php"
},
{
"key": "找資源",
@ -159,7 +159,7 @@
"api": "csp_Zhaozy",
"searchable": 1,
"filterable": 0,
"ext": "http://ali.饭太硬.ml/tok"
"ext": "http://我不是.肥猫.love:63/token.php"
},
{
"key": "push_agent",
@ -168,7 +168,7 @@
"api": "csp_Push",
"searchable": 1,
"filterable": 0,
"ext": "http://ali.饭太硬.ml/tok"
"ext": "http://我不是.肥猫.love:63/token.php"
}
]
}