Merge branch 'main' of https://github.com/FongMi/CatVodSpider
This commit is contained in:
commit
65356f2a50
|
|
@ -58,19 +58,15 @@ public class Push extends Ali {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setHttpSub(String url, List<Sub> subs) {
|
private void setHttpSub(String url, List<Sub> subs) {
|
||||||
try {
|
|
||||||
List<String> vodTypes = Arrays.asList("mp4", "mkv");
|
List<String> vodTypes = Arrays.asList("mp4", "mkv");
|
||||||
List<String> subTypes = Arrays.asList("srt", "ass");
|
List<String> subTypes = Arrays.asList("srt", "ass");
|
||||||
if (!vodTypes.contains(Utils.getExt(url))) return;
|
if (!vodTypes.contains(Utils.getExt(url))) return;
|
||||||
for (String ext : subTypes) detectSub(url, ext, subs);
|
for (String ext : subTypes) detectSub(url, ext, subs);
|
||||||
} catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void detectSub(String url, String ext, List<Sub> subs) throws Exception {
|
private void detectSub(String url, String ext, List<Sub> subs) {
|
||||||
url = Utils.removeExt(url).concat(".").concat(ext);
|
url = Utils.removeExt(url).concat(".").concat(ext);
|
||||||
if (OkHttp.newCall(url).code() != 200) return;
|
if (OkHttp.string(url).length() > 100) return;
|
||||||
String name = Uri.parse(url).getLastPathSegment();
|
String name = Uri.parse(url).getLastPathSegment();
|
||||||
subs.add(Sub.create().name(name).ext(ext).url(url));
|
subs.add(Sub.create().name(name).ext(ext).url(url));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
690e9c8ef197edeca7d3e9372aadec95
|
a6934bc36ece4231bc9d2748f96ceaf9
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;690e9c8ef197edeca7d3e9372aadec95",
|
"spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;a6934bc36ece4231bc9d2748f96ceaf9",
|
||||||
"wallpaper": "https://gao.chuqiuyu.tk",
|
"wallpaper": "https://gao.chuqiuyu.tk",
|
||||||
"sites": [
|
"sites": [
|
||||||
{
|
{
|
||||||
|
|
@ -11,6 +11,10 @@
|
||||||
"changeable": 0,
|
"changeable": 0,
|
||||||
"ext": {
|
"ext": {
|
||||||
"drives": [
|
"drives": [
|
||||||
|
{
|
||||||
|
"name": "SOD",
|
||||||
|
"server": "https://a.sodaz.xyz"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "AV",
|
"name": "AV",
|
||||||
"server": "https://a74d291e-3b91-45a5-9ec6-9f08a9178e59.id.repl.co"
|
"server": "https://a74d291e-3b91-45a5-9ec6-9f08a9178e59.id.repl.co"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;690e9c8ef197edeca7d3e9372aadec95",
|
"spider": "https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;a6934bc36ece4231bc9d2748f96ceaf9",
|
||||||
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
|
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
|
||||||
"sites": [
|
"sites": [
|
||||||
{
|
{
|
||||||
|
|
@ -145,15 +145,6 @@
|
||||||
"海外动漫"
|
"海外动漫"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"key": "熊熊",
|
|
||||||
"name": "熊熊",
|
|
||||||
"type": 1,
|
|
||||||
"api": "https://v.3412.net.cn/macapi.php/provide/vod",
|
|
||||||
"playUrl": "https://player.i597.cc/?url=",
|
|
||||||
"searchable": 1,
|
|
||||||
"changeable": 1
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"key": "櫻花",
|
"key": "櫻花",
|
||||||
"name": "櫻花",
|
"name": "櫻花",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue