多个网盘

This commit is contained in:
lushunming 2025-02-18 09:29:20 +08:00
parent 342840070d
commit 5551ed5d3d
12 changed files with 23 additions and 83 deletions

View File

@ -40,17 +40,7 @@ public class DuoDuo extends Cloud {
@Override @Override
public void init(Context context, String extend) throws Exception { public void init(Context context, String extend) throws Exception {
JsonObject ext = Json.safeObject(extend); // JsonObject ext = Json.safeObject(extend);
JsonArray siteList = ext.get("site").getAsJsonArray();
if (!siteList.isEmpty()) {
for (JsonElement jsonElement : siteList) {
String html = OkHttp.string(jsonElement.getAsString());
if (html.contains("电影")) {
siteUrl = jsonElement.getAsString();
break;
}
}
}
super.init(context, extend); super.init(context, extend);
} }
@ -76,7 +66,7 @@ public class DuoDuo extends Cloud {
urlParams[Integer.parseInt(key)] = extend.get(key); urlParams[Integer.parseInt(key)] = extend.get(key);
} }
} }
Document doc = Jsoup.parse(OkHttp.string(String.format("%s/index.php/vodshow/%s.html", siteUrl, String.join("-", urlParams)), getHeader())); Document doc = Jsoup.parse(OkHttp.string(String.format("%s/index.php/vod/show/id/%s/page/%s.html", siteUrl, tid, pg), getHeader()));
int page = Integer.parseInt(pg), limit = 72, total = 0; int page = Integer.parseInt(pg), limit = 72, total = 0;
Matcher matcher = regexPageTotal.matcher(doc.html()); Matcher matcher = regexPageTotal.matcher(doc.html());
if (matcher.find()) total = Integer.parseInt(matcher.group(1)); if (matcher.find()) total = Integer.parseInt(matcher.group(1));
@ -148,7 +138,7 @@ public class DuoDuo extends Cloud {
private String searchContent(String key, String pg) { private String searchContent(String key, String pg) {
String searchURL = siteUrl + String.format("/index.php/vodsearch/%s----------%s---.html", URLEncoder.encode(key), pg); String searchURL = siteUrl + String.format("/index.php/vod/search/page/%s/wd/%s.html", pg,URLEncoder.encode(key));
String html = OkHttp.string(searchURL, getHeader()); String html = OkHttp.string(searchURL, getHeader());
Elements items = Jsoup.parse(html).select(".module-search-item"); Elements items = Jsoup.parse(html).select(".module-search-item");
List<Vod> list = new ArrayList<>(); List<Vod> list = new ArrayList<>();

View File

@ -40,17 +40,7 @@ public class NaBi extends Cloud {
@Override @Override
public void init(Context context, String extend) throws Exception { public void init(Context context, String extend) throws Exception {
JsonObject ext = Json.safeObject(extend); // JsonObject ext = Json.safeObject(extend);
JsonArray siteList = ext.get("site").getAsJsonArray();
if (!siteList.isEmpty()) {
for (JsonElement jsonElement : siteList) {
String html = OkHttp.string(jsonElement.getAsString());
if (html.contains("电影")) {
siteUrl = jsonElement.getAsString();
break;
}
}
}
super.init(context, extend); super.init(context, extend);
} }
@ -76,7 +66,7 @@ public class NaBi extends Cloud {
urlParams[Integer.parseInt(key)] = extend.get(key); urlParams[Integer.parseInt(key)] = extend.get(key);
} }
} }
Document doc = Jsoup.parse(OkHttp.string(String.format("%s/index.php/vodshow/%s.html", siteUrl, String.join("-", urlParams)), getHeader())); Document doc = Jsoup.parse(OkHttp.string(String.format("%s/index.php/vod/show/id/%s/page/%s.html", siteUrl, tid, pg), getHeader()));
int page = Integer.parseInt(pg), limit = 72, total = 0; int page = Integer.parseInt(pg), limit = 72, total = 0;
Matcher matcher = regexPageTotal.matcher(doc.html()); Matcher matcher = regexPageTotal.matcher(doc.html());
if (matcher.find()) total = Integer.parseInt(matcher.group(1)); if (matcher.find()) total = Integer.parseInt(matcher.group(1));
@ -148,7 +138,7 @@ public class NaBi extends Cloud {
private String searchContent(String key, String pg) { private String searchContent(String key, String pg) {
String searchURL = siteUrl + String.format("/index.php/vodsearch/%s----------%s---.html", URLEncoder.encode(key), pg); String searchURL = siteUrl + String.format("/index.php/vod/search/page/%s/wd/%s.html", pg,URLEncoder.encode(key));
String html = OkHttp.string(searchURL, getHeader()); String html = OkHttp.string(searchURL, getHeader());
Elements items = Jsoup.parse(html).select(".module-search-item"); Elements items = Jsoup.parse(html).select(".module-search-item");
List<Vod> list = new ArrayList<>(); List<Vod> list = new ArrayList<>();

View File

@ -40,17 +40,7 @@ public class ShanDian extends Cloud {
@Override @Override
public void init(Context context, String extend) throws Exception { public void init(Context context, String extend) throws Exception {
JsonObject ext = Json.safeObject(extend); // JsonObject ext = Json.safeObject(extend);
JsonArray siteList = ext.get("site").getAsJsonArray();
if (!siteList.isEmpty()) {
for (JsonElement jsonElement : siteList) {
String html = OkHttp.string(jsonElement.getAsString());
if (html.contains("电影")) {
siteUrl = jsonElement.getAsString();
break;
}
}
}
super.init(context, extend); super.init(context, extend);
} }
@ -76,7 +66,7 @@ public class ShanDian extends Cloud {
urlParams[Integer.parseInt(key)] = extend.get(key); urlParams[Integer.parseInt(key)] = extend.get(key);
} }
} }
Document doc = Jsoup.parse(OkHttp.string(String.format("%s/index.php/vodshow/%s.html", siteUrl, String.join("-", urlParams)), getHeader())); Document doc = Jsoup.parse(OkHttp.string(String.format("%s/index.php/vod/show/id/%s/page/%s.html", siteUrl, tid, pg), getHeader()));
int page = Integer.parseInt(pg), limit = 72, total = 0; int page = Integer.parseInt(pg), limit = 72, total = 0;
Matcher matcher = regexPageTotal.matcher(doc.html()); Matcher matcher = regexPageTotal.matcher(doc.html());
if (matcher.find()) total = Integer.parseInt(matcher.group(1)); if (matcher.find()) total = Integer.parseInt(matcher.group(1));
@ -148,7 +138,7 @@ public class ShanDian extends Cloud {
private String searchContent(String key, String pg) { private String searchContent(String key, String pg) {
String searchURL = siteUrl + String.format("/index.php/vodsearch/%s----------%s---.html", URLEncoder.encode(key), pg); String searchURL = siteUrl + String.format("/index.php/vod/search/page/%s/wd/%s.html", pg,URLEncoder.encode(key));
String html = OkHttp.string(searchURL, getHeader()); String html = OkHttp.string(searchURL, getHeader());
Elements items = Jsoup.parse(html).select(".module-search-item"); Elements items = Jsoup.parse(html).select(".module-search-item");
List<Vod> list = new ArrayList<>(); List<Vod> list = new ArrayList<>();

View File

@ -40,17 +40,7 @@ public class TeXiaFan extends Cloud {
@Override @Override
public void init(Context context, String extend) throws Exception { public void init(Context context, String extend) throws Exception {
JsonObject ext = Json.safeObject(extend); // JsonObject ext = Json.safeObject(extend);
JsonArray siteList = ext.get("site").getAsJsonArray();
if (!siteList.isEmpty()) {
for (JsonElement jsonElement : siteList) {
String html = OkHttp.string(jsonElement.getAsString());
if (html.contains("电影")) {
siteUrl = jsonElement.getAsString();
break;
}
}
}
super.init(context, extend); super.init(context, extend);
} }
@ -76,7 +66,7 @@ public class TeXiaFan extends Cloud {
urlParams[Integer.parseInt(key)] = extend.get(key); urlParams[Integer.parseInt(key)] = extend.get(key);
} }
} }
Document doc = Jsoup.parse(OkHttp.string(String.format("%s/index.php/vodshow/%s.html", siteUrl, String.join("-", urlParams)), getHeader())); Document doc = Jsoup.parse(OkHttp.string(String.format("%s/index.php/vod/show/id/%s/page/%s.html", siteUrl, tid, pg), getHeader()));
int page = Integer.parseInt(pg), limit = 72, total = 0; int page = Integer.parseInt(pg), limit = 72, total = 0;
Matcher matcher = regexPageTotal.matcher(doc.html()); Matcher matcher = regexPageTotal.matcher(doc.html());
if (matcher.find()) total = Integer.parseInt(matcher.group(1)); if (matcher.find()) total = Integer.parseInt(matcher.group(1));
@ -148,7 +138,7 @@ public class TeXiaFan extends Cloud {
private String searchContent(String key, String pg) { private String searchContent(String key, String pg) {
String searchURL = siteUrl + String.format("/index.php/vodsearch/%s----------%s---.html", URLEncoder.encode(key), pg); String searchURL = siteUrl + String.format("/index.php/vod/search/page/%s/wd/%s.html", pg,URLEncoder.encode(key));
String html = OkHttp.string(searchURL, getHeader()); String html = OkHttp.string(searchURL, getHeader());
Elements items = Jsoup.parse(html).select(".module-search-item"); Elements items = Jsoup.parse(html).select(".module-search-item");
List<Vod> list = new ArrayList<>(); List<Vod> list = new ArrayList<>();

View File

@ -40,17 +40,7 @@ public class XiaoMi extends Cloud {
@Override @Override
public void init(Context context, String extend) throws Exception { public void init(Context context, String extend) throws Exception {
JsonObject ext = Json.safeObject(extend); // JsonObject ext = Json.safeObject(extend);
JsonArray siteList = ext.get("site").getAsJsonArray();
if (!siteList.isEmpty()) {
for (JsonElement jsonElement : siteList) {
String html = OkHttp.string(jsonElement.getAsString());
if (html.contains("电影")) {
siteUrl = jsonElement.getAsString();
break;
}
}
}
super.init(context, extend); super.init(context, extend);
} }
@ -76,7 +66,7 @@ public class XiaoMi extends Cloud {
urlParams[Integer.parseInt(key)] = extend.get(key); urlParams[Integer.parseInt(key)] = extend.get(key);
} }
} }
Document doc = Jsoup.parse(OkHttp.string(String.format("%s/index.php/vodshow/%s.html", siteUrl, String.join("-", urlParams)), getHeader())); Document doc = Jsoup.parse(OkHttp.string(String.format("%s/index.php/vod/show/id/%s/page/%s.html", siteUrl, tid, pg), getHeader()));
int page = Integer.parseInt(pg), limit = 72, total = 0; int page = Integer.parseInt(pg), limit = 72, total = 0;
Matcher matcher = regexPageTotal.matcher(doc.html()); Matcher matcher = regexPageTotal.matcher(doc.html());
if (matcher.find()) total = Integer.parseInt(matcher.group(1)); if (matcher.find()) total = Integer.parseInt(matcher.group(1));
@ -148,7 +138,7 @@ public class XiaoMi extends Cloud {
private String searchContent(String key, String pg) { private String searchContent(String key, String pg) {
String searchURL = siteUrl + String.format("/index.php/vodsearch/%s----------%s---.html", URLEncoder.encode(key), pg); String searchURL = siteUrl + String.format("/index.php/vod/search/page/%s/wd/%s.html", pg,URLEncoder.encode(key));
String html = OkHttp.string(searchURL, getHeader()); String html = OkHttp.string(searchURL, getHeader());
Elements items = Jsoup.parse(html).select(".module-search-item"); Elements items = Jsoup.parse(html).select(".module-search-item");
List<Vod> list = new ArrayList<>(); List<Vod> list = new ArrayList<>();

View File

@ -40,17 +40,7 @@ public class ZhiZhen extends Cloud {
@Override @Override
public void init(Context context, String extend) throws Exception { public void init(Context context, String extend) throws Exception {
JsonObject ext = Json.safeObject(extend); // JsonObject ext = Json.safeObject(extend);
JsonArray siteList = ext.get("site").getAsJsonArray();
if (!siteList.isEmpty()) {
for (JsonElement jsonElement : siteList) {
String html = OkHttp.string(jsonElement.getAsString());
if (html.contains("电影")) {
siteUrl = jsonElement.getAsString();
break;
}
}
}
super.init(context, extend); super.init(context, extend);
} }
@ -76,7 +66,7 @@ public class ZhiZhen extends Cloud {
urlParams[Integer.parseInt(key)] = extend.get(key); urlParams[Integer.parseInt(key)] = extend.get(key);
} }
} }
Document doc = Jsoup.parse(OkHttp.string(String.format("%s/index.php/vodshow/%s.html", siteUrl, String.join("-", urlParams)), getHeader())); Document doc = Jsoup.parse(OkHttp.string(String.format("%s/index.php/vod/show/id/%s/page/%s.html", siteUrl, tid, pg), getHeader()));
int page = Integer.parseInt(pg), limit = 72, total = 0; int page = Integer.parseInt(pg), limit = 72, total = 0;
Matcher matcher = regexPageTotal.matcher(doc.html()); Matcher matcher = regexPageTotal.matcher(doc.html());
if (matcher.find()) total = Integer.parseInt(matcher.group(1)); if (matcher.find()) total = Integer.parseInt(matcher.group(1));
@ -148,7 +138,7 @@ public class ZhiZhen extends Cloud {
private String searchContent(String key, String pg) { private String searchContent(String key, String pg) {
String searchURL = siteUrl + String.format("/index.php/vodsearch/%s----------%s---.html", URLEncoder.encode(key), pg); String searchURL = siteUrl + String.format("/index.php/vod/search/page/%s/wd/%s.html", pg,URLEncoder.encode(key));
String html = OkHttp.string(searchURL, getHeader()); String html = OkHttp.string(searchURL, getHeader());
Elements items = Jsoup.parse(html).select(".module-search-item"); Elements items = Jsoup.parse(html).select(".module-search-item");
List<Vod> list = new ArrayList<>(); List<Vod> list = new ArrayList<>();

Binary file not shown.

View File

@ -1 +1 @@
c3be25374d8d674c8ca3b57c395d0fad 8cfebc2822aa9b34bccab340ac7071ca

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;f9c6ffc30c6a09b30ee403675a8851af", "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;8cfebc2822aa9b34bccab340ac7071ca",
"lives": [ "lives": [
{ {
"name": "直播", "name": "直播",

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;f9c6ffc30c6a09b30ee403675a8851af", "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;8cfebc2822aa9b34bccab340ac7071ca",
"lives": [ "lives": [
{ {
"name": "直播ipv6", "name": "直播ipv6",

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;f9c6ffc30c6a09b30ee403675a8851af", "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;8cfebc2822aa9b34bccab340ac7071ca",
"lives": [ "lives": [
{ {
"name": "直播ipv6", "name": "直播ipv6",

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;f9c6ffc30c6a09b30ee403675a8851af", "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;8cfebc2822aa9b34bccab340ac7071ca",
"lives": [ "lives": [
{ {
"name": "直播", "name": "直播",