网盘bug

This commit is contained in:
“lushunming” 2024-11-16 14:17:15 +08:00
parent 764548f68b
commit 3e086bb42c
7 changed files with 21 additions and 7 deletions

View File

@ -4,6 +4,7 @@ import com.github.catvod.bean.Result;
import com.github.catvod.bean.Vod;
import com.github.catvod.crawler.SpiderDebug;
import com.github.catvod.net.OkHttp;
import com.github.catvod.utils.Json;
import com.github.catvod.utils.Util;
import org.json.JSONArray;
@ -35,9 +36,14 @@ public class QiLeSo extends Cloud {
@Override
public String detailContent(List<String> shareUrl) throws Exception {
SpiderDebug.log("qileso detail args:" + Json.toJson(shareUrl));
String html = OkHttp.string(shareUrl.get(0), getHeader());
Document doc = Jsoup.parse(html);
Element elements = doc.selectFirst("#body > div > div.thread-body > div.thread-content.message.break-all > p > a");
SpiderDebug.log("qileso detail shareurl:" + elements.attr("href"));
String result = super.detailContent(List.of(elements.attr("href")));
SpiderDebug.log("qileso detail:" + result);
return result;

View File

@ -53,6 +53,14 @@ public class QiLeSoTest {
Assert.assertFalse(map.getAsJsonArray("list").isEmpty());
}
@org.junit.Test
public void playerContent() throws Exception {
String content = spider.playerContent("quark原画","a4ab51029918471ba2670860782578b7++c3bca901cf3b093ac715fc8a01443162++f4efe22f20d4++r24Qc/rJu8no6tzp0f1AewkGX6xrG/SbFFM2IKri0Mk=",null);
JsonObject map = Json.safeObject(content);
Gson gson = new GsonBuilder().setPrettyPrinting().create();
System.out.println("playerContent--" + gson.toJson(map));
Assert.assertFalse(map.getAsJsonArray("list").isEmpty());
}
}

Binary file not shown.

View File

@ -1 +1 @@
49707ea777c8f1a3c7d64bc5d35a931e
e6675006390d7f2339b9d557a21e9d7a

View File

@ -1,5 +1,5 @@
{
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;49707ea777c8f1a3c7d64bc5d35a931e",
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;e6675006390d7f2339b9d557a21e9d7a",
"lives": [
{
"name": "直播",

View File

@ -1,5 +1,5 @@
{
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;49707ea777c8f1a3c7d64bc5d35a931e",
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;e6675006390d7f2339b9d557a21e9d7a",
"lives": [
{
"name": "直播ipv6",

View File

@ -1,5 +1,5 @@
{
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;49707ea777c8f1a3c7d64bc5d35a931e",
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;e6675006390d7f2339b9d557a21e9d7a",
"lives": [
{
"name": "直播ipv6",