Update
This commit is contained in:
parent
6c01ea4f31
commit
099edcc925
|
|
@ -2,11 +2,15 @@ package com.github.catvod.spider;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
|
||||||
|
import com.github.catvod.bean.Class;
|
||||||
|
import com.github.catvod.bean.Result;
|
||||||
|
import com.github.catvod.bean.Vod;
|
||||||
|
import com.github.catvod.net.OkHttp;
|
||||||
|
import com.github.catvod.utils.Util;
|
||||||
|
|
||||||
import org.jsoup.Jsoup;
|
import org.jsoup.Jsoup;
|
||||||
import org.jsoup.nodes.Document;
|
import org.jsoup.nodes.Document;
|
||||||
import org.jsoup.nodes.Element;
|
import org.jsoup.nodes.Element;
|
||||||
import com.github.catvod.net.OkHttp;
|
|
||||||
import com.github.catvod.utils.Util;
|
|
||||||
|
|
||||||
import java.net.URLEncoder;
|
import java.net.URLEncoder;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
@ -17,10 +21,6 @@ import java.util.Map;
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import com.github.catvod.bean.Result;
|
|
||||||
import com.github.catvod.bean.Vod;
|
|
||||||
import com.github.catvod.bean.Class;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Qile
|
* @author Qile
|
||||||
*/
|
*/
|
||||||
|
|
@ -36,12 +36,10 @@ public class Pan99 extends Ali {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void init(Context context, String extend) throws Exception {
|
public void init(Context context, String extend) {
|
||||||
String[] split = extend.split("\\$");
|
String[] split = extend.split("\\$");
|
||||||
|
if (split.length == 2 && split[1].length() > 0) siteUrl = split[1];
|
||||||
super.init(context, split[0]);
|
super.init(context, split[0]);
|
||||||
if (split.length >= 2 && !split[1].isEmpty()) {
|
|
||||||
siteUrl = split[1];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
@ -49,8 +47,7 @@ public class Pan99 extends Ali {
|
||||||
List<Class> classes = new ArrayList<>();
|
List<Class> classes = new ArrayList<>();
|
||||||
List<String> typeIds = Arrays.asList("dy", "tv", "tv/geng", "tv/netflix");
|
List<String> typeIds = Arrays.asList("dy", "tv", "tv/geng", "tv/netflix");
|
||||||
List<String> typeNames = Arrays.asList("电影", "完结剧集", "追更剧集", "Netflix");
|
List<String> typeNames = Arrays.asList("电影", "完结剧集", "追更剧集", "Netflix");
|
||||||
for (int i = 0; i < typeIds.size(); i++)
|
for (int i = 0; i < typeIds.size(); i++) classes.add(new Class(typeIds.get(i), typeNames.get(i)));
|
||||||
classes.add(new Class(typeIds.get(i), typeNames.get(i)));
|
|
||||||
Document doc = Jsoup.parse(OkHttp.string(siteUrl, getHeader()));
|
Document doc = Jsoup.parse(OkHttp.string(siteUrl, getHeader()));
|
||||||
List<Vod> list = new ArrayList<>();
|
List<Vod> list = new ArrayList<>();
|
||||||
for (Element li : doc.select("div.col a.media-img")) {
|
for (Element li : doc.select("div.col a.media-img")) {
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
96a99e445d620353890869d95755b890
|
ca7cf8ac2302fa00985a57e4e58124ab
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://fm.t4tv.hz.cz/jar/custom_spider.jar;md5;96a99e445d620353890869d95755b890",
|
"spider": "https://fm.t4tv.hz.cz/jar/custom_spider.jar;md5;ca7cf8ac2302fa00985a57e4e58124ab",
|
||||||
"wallpaper": "https://gao.chuqiuyu.workers.dev",
|
"wallpaper": "https://gao.chuqiuyu.workers.dev",
|
||||||
"sites": [
|
"sites": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://fm.t4tv.hz.cz/jar/custom_spider.jar;md5;96a99e445d620353890869d95755b890",
|
"spider": "https://fm.t4tv.hz.cz/jar/custom_spider.jar;md5;ca7cf8ac2302fa00985a57e4e58124ab",
|
||||||
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
|
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
|
||||||
"sites": [
|
"sites": [
|
||||||
{
|
{
|
||||||
|
|
@ -39,6 +39,15 @@
|
||||||
"filter": "https://fm.t4tv.hz.cz/json/wogg.json"
|
"filter": "https://fm.t4tv.hz.cz/json/wogg.json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"key": "盤99",
|
||||||
|
"name": "盤99",
|
||||||
|
"type": 3,
|
||||||
|
"api": "csp_Pan99",
|
||||||
|
"searchable": 1,
|
||||||
|
"changeable": 0,
|
||||||
|
"ext": "影視天下第一"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"key": "賤賤",
|
"key": "賤賤",
|
||||||
"name": "賤賤",
|
"name": "賤賤",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue