diff --git a/app/src/main/java/com/github/catvod/spider/QiLeSo.java b/app/src/main/java/com/github/catvod/spider/QiLeSo.java index 6a720c4d..f70b6982 100644 --- a/app/src/main/java/com/github/catvod/spider/QiLeSo.java +++ b/app/src/main/java/com/github/catvod/spider/QiLeSo.java @@ -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,11 +36,16 @@ public class QiLeSo extends Cloud { @Override public String detailContent(List 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"); - String result=super.detailContent(List.of(elements.attr("href"))); - SpiderDebug.log("qileso detail:"+result); + SpiderDebug.log("qileso detail shareurl:" + elements.attr("href")); + + + String result = super.detailContent(List.of(elements.attr("href"))); + SpiderDebug.log("qileso detail:" + result); return result; } @@ -58,7 +64,7 @@ public class QiLeSo extends Cloud { list.add(new Vod(id, name, "")); } - SpiderDebug.log("qileso searchContent:"+Result.string(list)); + SpiderDebug.log("qileso searchContent:" + Result.string(list)); return Result.string(list); } diff --git a/app/src/test/java/QiLeSoTest.java b/app/src/test/java/QiLeSoTest.java index 5b298084..12d10251 100644 --- a/app/src/test/java/QiLeSoTest.java +++ b/app/src/test/java/QiLeSoTest.java @@ -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()); + } } \ No newline at end of file diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index a9d93238..6030ed10 100644 Binary files a/jar/custom_spider.jar and b/jar/custom_spider.jar differ diff --git a/jar/custom_spider.jar.md5 b/jar/custom_spider.jar.md5 index 8a76dfc1..5b62c823 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -49707ea777c8f1a3c7d64bc5d35a931e +e6675006390d7f2339b9d557a21e9d7a diff --git a/json/index.json b/json/index.json index e0ab9458..a723ee5d 100644 --- a/json/index.json +++ b/json/index.json @@ -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": "直播", diff --git a/json/index1.json b/json/index1.json index 1b048a9c..f91100d0 100644 --- a/json/index1.json +++ b/json/index1.json @@ -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", diff --git a/json/index2.json b/json/index2.json index 810564d1..a4052948 100644 --- a/json/index2.json +++ b/json/index2.json @@ -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",