网盘bug
This commit is contained in:
parent
764548f68b
commit
3e086bb42c
|
|
@ -4,6 +4,7 @@ import com.github.catvod.bean.Result;
|
||||||
import com.github.catvod.bean.Vod;
|
import com.github.catvod.bean.Vod;
|
||||||
import com.github.catvod.crawler.SpiderDebug;
|
import com.github.catvod.crawler.SpiderDebug;
|
||||||
import com.github.catvod.net.OkHttp;
|
import com.github.catvod.net.OkHttp;
|
||||||
|
import com.github.catvod.utils.Json;
|
||||||
import com.github.catvod.utils.Util;
|
import com.github.catvod.utils.Util;
|
||||||
|
|
||||||
import org.json.JSONArray;
|
import org.json.JSONArray;
|
||||||
|
|
@ -35,11 +36,16 @@ public class QiLeSo extends Cloud {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String detailContent(List<String> shareUrl) throws Exception {
|
public String detailContent(List<String> shareUrl) throws Exception {
|
||||||
|
SpiderDebug.log("qileso detail args:" + Json.toJson(shareUrl));
|
||||||
|
|
||||||
String html = OkHttp.string(shareUrl.get(0), getHeader());
|
String html = OkHttp.string(shareUrl.get(0), getHeader());
|
||||||
Document doc = Jsoup.parse(html);
|
Document doc = Jsoup.parse(html);
|
||||||
Element elements = doc.selectFirst("#body > div > div.thread-body > div.thread-content.message.break-all > p > a");
|
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 shareurl:" + elements.attr("href"));
|
||||||
SpiderDebug.log("qileso detail:"+result);
|
|
||||||
|
|
||||||
|
String result = super.detailContent(List.of(elements.attr("href")));
|
||||||
|
SpiderDebug.log("qileso detail:" + result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -58,7 +64,7 @@ public class QiLeSo extends Cloud {
|
||||||
list.add(new Vod(id, name, ""));
|
list.add(new Vod(id, name, ""));
|
||||||
}
|
}
|
||||||
|
|
||||||
SpiderDebug.log("qileso searchContent:"+Result.string(list));
|
SpiderDebug.log("qileso searchContent:" + Result.string(list));
|
||||||
|
|
||||||
return Result.string(list);
|
return Result.string(list);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,14 @@ public class QiLeSoTest {
|
||||||
Assert.assertFalse(map.getAsJsonArray("list").isEmpty());
|
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.
|
|
@ -1 +1 @@
|
||||||
49707ea777c8f1a3c7d64bc5d35a931e
|
e6675006390d7f2339b9d557a21e9d7a
|
||||||
|
|
|
||||||
|
|
@ -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": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播",
|
"name": "直播",
|
||||||
|
|
|
||||||
|
|
@ -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": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播ipv6",
|
"name": "直播ipv6",
|
||||||
|
|
|
||||||
|
|
@ -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": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播ipv6",
|
"name": "直播ipv6",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue