Fix ysj
This commit is contained in:
parent
463fb9b638
commit
d0fafe7681
|
|
@ -8,7 +8,6 @@ import com.github.catvod.bean.Result;
|
||||||
import com.github.catvod.bean.Vod;
|
import com.github.catvod.bean.Vod;
|
||||||
import com.github.catvod.crawler.Spider;
|
import com.github.catvod.crawler.Spider;
|
||||||
import com.github.catvod.net.OkHttpUtil;
|
import com.github.catvod.net.OkHttpUtil;
|
||||||
import com.github.catvod.utils.Json;
|
|
||||||
import com.github.catvod.utils.Misc;
|
import com.github.catvod.utils.Misc;
|
||||||
import com.github.catvod.utils.Trans;
|
import com.github.catvod.utils.Trans;
|
||||||
|
|
||||||
|
|
@ -163,13 +162,6 @@ public class Ysj extends Spider {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String playerContent(String flag, String id, List<String> vipFlags) {
|
public String playerContent(String flag, String id, List<String> vipFlags) {
|
||||||
String data = OkHttpUtil.string(siteUrl + playUrl + id, getHeaders());
|
return Result.get().url(siteUrl + playUrl + id).parse().header(getHeaders()).string();
|
||||||
for (String text : data.split("var")) {
|
|
||||||
if (!text.contains("player_aaaa")) continue;
|
|
||||||
data = text.split("=")[1];
|
|
||||||
data = data.substring(0, data.indexOf("}") + 1);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return Result.get().url(Json.getString(data, "url")).header(getHeaders()).string();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
8211cf471a24a780127bf9e96ebd32ff
|
59966d1e2bc3227e581f8269c2d1fd39
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;8211cf471a24a780127bf9e96ebd32ff",
|
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;59966d1e2bc3227e581f8269c2d1fd39",
|
||||||
"wallpaper": "https://gao.chuqiuyu.tk",
|
"wallpaper": "https://gao.chuqiuyu.tk",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;8211cf471a24a780127bf9e96ebd32ff",
|
"spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;59966d1e2bc3227e581f8269c2d1fd39",
|
||||||
"wallpaper": "http://www.kf666888.cn/api/tvbox/img",
|
"wallpaper": "http://www.kf666888.cn/api/tvbox/img",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue