电影天堂修改
This commit is contained in:
parent
9210c446b2
commit
e0030d53d4
|
|
@ -44,7 +44,7 @@ public class TvDy extends Spider {
|
||||||
classes.add(new Class(typeIdList[i], typeNameList[i]));
|
classes.add(new Class(typeIdList[i], typeNameList[i]));
|
||||||
}
|
}
|
||||||
Document doc = Jsoup.parse(OkHttp.string(siteUrl, getHeaders()));
|
Document doc = Jsoup.parse(OkHttp.string(siteUrl, getHeaders()));
|
||||||
for (Element element : doc.select("div.stui-vodlist__box a")) {
|
for (Element element : doc.select("a.stui-vodlist__thumb")) {
|
||||||
try {
|
try {
|
||||||
String pic = element.attr("data-original");
|
String pic = element.attr("data-original");
|
||||||
String url = element.attr("href");
|
String url = element.attr("href");
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ public class TvDyTest {
|
||||||
@org.junit.Test
|
@org.junit.Test
|
||||||
public void detailContent() throws Exception {
|
public void detailContent() throws Exception {
|
||||||
|
|
||||||
String content = spider.detailContent(Arrays.asList("index125346.html"));
|
String content = spider.detailContent(Arrays.asList("index126780.html"));
|
||||||
JsonObject map = Json.safeObject(content);
|
JsonObject map = Json.safeObject(content);
|
||||||
Gson gson = new GsonBuilder().setPrettyPrinting().create();
|
Gson gson = new GsonBuilder().setPrettyPrinting().create();
|
||||||
System.out.println("detailContent--" + gson.toJson(map));
|
System.out.println("detailContent--" + gson.toJson(map));
|
||||||
|
|
@ -73,7 +73,7 @@ public class TvDyTest {
|
||||||
|
|
||||||
@org.junit.Test
|
@org.junit.Test
|
||||||
public void playerContent() throws Exception {
|
public void playerContent() throws Exception {
|
||||||
String content = spider.playerContent("", "125346-1-3.html", new ArrayList<>());
|
String content = spider.playerContent("", "126780-0-0.html", new ArrayList<>());
|
||||||
JsonObject map = Json.safeObject(content);
|
JsonObject map = Json.safeObject(content);
|
||||||
Gson gson = new GsonBuilder().setPrettyPrinting().create();
|
Gson gson = new GsonBuilder().setPrettyPrinting().create();
|
||||||
System.out.println("playerContent--" + gson.toJson(map));
|
System.out.println("playerContent--" + gson.toJson(map));
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
3db55e5a6a3e4af625250be4d952bc3e
|
9b75d7c15ea175b9ea9b6b63e676ce99
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;3db55e5a6a3e4af625250be4d952bc3e",
|
"spider": "https://androidcatvodspider.pages.dev/jar/custom_spider.jar;md5;9b75d7c15ea175b9ea9b6b63e676ce99",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播ipv6",
|
"name": "直播ipv6",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue