Merge branch 'main' of https://github.com/FongMi/CatVodSpider
This commit is contained in:
commit
8dac99985f
|
|
@ -6,6 +6,7 @@ import com.github.catvod.utils.Misc;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|
@ -29,6 +30,8 @@ public class Item {
|
||||||
private String category;
|
private String category;
|
||||||
@SerializedName("size")
|
@SerializedName("size")
|
||||||
private double size;
|
private double size;
|
||||||
|
@SerializedName("parent")
|
||||||
|
private String parent;
|
||||||
|
|
||||||
public static Item objectFrom(String str) {
|
public static Item objectFrom(String str) {
|
||||||
return new Gson().fromJson(str, Item.class);
|
return new Gson().fromJson(str, Item.class);
|
||||||
|
|
@ -50,10 +53,6 @@ public class Item {
|
||||||
return TextUtils.isEmpty(fileId) ? "" : fileId;
|
return TextUtils.isEmpty(fileId) ? "" : fileId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getShareId() {
|
|
||||||
return TextUtils.isEmpty(shareId) ? "" : shareId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return TextUtils.isEmpty(name) ? "" : name;
|
return TextUtils.isEmpty(name) ? "" : name;
|
||||||
}
|
}
|
||||||
|
|
@ -70,12 +69,21 @@ public class Item {
|
||||||
return TextUtils.isEmpty(category) ? "" : category;
|
return TextUtils.isEmpty(category) ? "" : category;
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getSize() {
|
public String getSize() {
|
||||||
return size;
|
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() {
|
public String getDisplayName() {
|
||||||
return getSize() == 0 ? getName() : "[" + Misc.getSize(getSize()) + "] " + getName();
|
return TextUtils.join(" ", Arrays.asList(getParent(), getName(), getSize())).trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String removeExt() {
|
public String removeExt() {
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,7 @@ public class Ali {
|
||||||
if (file.getType().equals("folder")) {
|
if (file.getType().equals("folder")) {
|
||||||
folders.add(file);
|
folders.add(file);
|
||||||
} else if (file.getCategory().equals("video") || file.getCategory().equals("audio")) {
|
} 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())) {
|
} else if (Misc.isSub(file.getExt())) {
|
||||||
String key = file.removeExt();
|
String key = file.removeExt();
|
||||||
if (!subMap.containsKey(key)) subMap.put(key, new ArrayList<>());
|
if (!subMap.containsKey(key)) subMap.put(key, new ArrayList<>());
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
b6cec380ddab899d275cf2fec2ed676a
|
bad875495a9d88aeb0dc1744e9c85feb
|
||||||
|
|
|
||||||
|
|
@ -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",
|
"wallpaper": "https://gao.chuqiuyu.tk",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
|
|
@ -618,7 +618,7 @@
|
||||||
"api": "csp_Push",
|
"api": "csp_Push",
|
||||||
"searchable": 1,
|
"searchable": 1,
|
||||||
"filterable": 1,
|
"filterable": 1,
|
||||||
"ext": "http://ali.饭太硬.ml/tok"
|
"ext": "http://我不是.肥猫.love:63/token.php"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -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",
|
"wallpaper": "http://www.kf666888.cn/api/tvbox/img",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
|
|
@ -123,7 +123,7 @@
|
||||||
"api": "csp_Paper",
|
"api": "csp_Paper",
|
||||||
"searchable": 1,
|
"searchable": 1,
|
||||||
"filterable": 1,
|
"filterable": 1,
|
||||||
"ext": "http://ali.饭太硬.ml/tok"
|
"ext": "http://我不是.肥猫.love:63/token.php"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "易搜",
|
"key": "易搜",
|
||||||
|
|
@ -132,7 +132,7 @@
|
||||||
"api": "csp_YiSo",
|
"api": "csp_YiSo",
|
||||||
"searchable": 1,
|
"searchable": 1,
|
||||||
"filterable": 0,
|
"filterable": 0,
|
||||||
"ext": "http://ali.饭太硬.ml/tok"
|
"ext": "http://我不是.肥猫.love:63/token.php"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "盤搜",
|
"key": "盤搜",
|
||||||
|
|
@ -141,7 +141,7 @@
|
||||||
"api": "csp_PanSou",
|
"api": "csp_PanSou",
|
||||||
"searchable": 1,
|
"searchable": 1,
|
||||||
"filterable": 0,
|
"filterable": 0,
|
||||||
"ext": "http://ali.饭太硬.ml/tok"
|
"ext": "http://我不是.肥猫.love:63/token.php"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "UP雲搜",
|
"key": "UP雲搜",
|
||||||
|
|
@ -150,7 +150,7 @@
|
||||||
"api": "csp_UpYun",
|
"api": "csp_UpYun",
|
||||||
"searchable": 1,
|
"searchable": 1,
|
||||||
"filterable": 0,
|
"filterable": 0,
|
||||||
"ext": "http://ali.饭太硬.ml/tok"
|
"ext": "http://我不是.肥猫.love:63/token.php"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "找資源",
|
"key": "找資源",
|
||||||
|
|
@ -159,7 +159,7 @@
|
||||||
"api": "csp_Zhaozy",
|
"api": "csp_Zhaozy",
|
||||||
"searchable": 1,
|
"searchable": 1,
|
||||||
"filterable": 0,
|
"filterable": 0,
|
||||||
"ext": "http://ali.饭太硬.ml/tok"
|
"ext": "http://我不是.肥猫.love:63/token.php"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "push_agent",
|
"key": "push_agent",
|
||||||
|
|
@ -168,7 +168,7 @@
|
||||||
"api": "csp_Push",
|
"api": "csp_Push",
|
||||||
"searchable": 1,
|
"searchable": 1,
|
||||||
"filterable": 0,
|
"filterable": 0,
|
||||||
"ext": "http://ali.饭太硬.ml/tok"
|
"ext": "http://我不是.肥猫.love:63/token.php"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue