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) {
|
||||
try {
|
||||
List<String> vodTypes = Arrays.asList("mp4", "mkv");
|
||||
List<String> subTypes = Arrays.asList("srt", "ass");
|
||||
if (!vodTypes.contains(Utils.getExt(url))) return;
|
||||
for (String ext : subTypes) detectSub(url, ext, subs);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
List<String> vodTypes = Arrays.asList("mp4", "mkv");
|
||||
List<String> subTypes = Arrays.asList("srt", "ass");
|
||||
if (!vodTypes.contains(Utils.getExt(url))) return;
|
||||
for (String ext : subTypes) detectSub(url, ext, subs);
|
||||
}
|
||||
|
||||
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);
|
||||
if (OkHttp.newCall(url).code() != 200) return;
|
||||
if (OkHttp.string(url).length() > 100) return;
|
||||
String name = Uri.parse(url).getLastPathSegment();
|
||||
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",
|
||||
"sites": [
|
||||
{
|
||||
|
|
@ -11,6 +11,10 @@
|
|||
"changeable": 0,
|
||||
"ext": {
|
||||
"drives": [
|
||||
{
|
||||
"name": "SOD",
|
||||
"server": "https://a.sodaz.xyz"
|
||||
},
|
||||
{
|
||||
"name": "AV",
|
||||
"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",
|
||||
"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": "櫻花",
|
||||
"name": "櫻花",
|
||||
|
|
|
|||
Loading…
Reference in New Issue