add - B站11
This commit is contained in:
@@ -478,7 +478,6 @@ public class PushAgent extends Spider {
|
||||
vodAtom.put("vod_content", url);
|
||||
vodAtom.put("vod_area", type + refreshToken);
|
||||
if (Misc.isVip(url) && !url.contains("qq.com") && !url.contains("mgtv.com")) {
|
||||
vodAtom.put("vod_play_from", "jx");
|
||||
Elements playListA = null;
|
||||
Document doc = Jsoup.parse(OkHttpUtil.string(url, Misc.Headers(0,url)));
|
||||
String baseUrl = url.replaceAll("(^https?://.*?)(:\\d+)?/.*$", "$1");//https://www.dyk9.com
|
||||
@@ -499,14 +498,13 @@ public class PushAgent extends Spider {
|
||||
String playList = TextUtils.join("#", vodItems);
|
||||
vodAtom.put("vod_play_url", playList);
|
||||
}
|
||||
vodAtom.put("vod_play_from", "parse");
|
||||
} else {
|
||||
vodAtom.put("vod_play_url", "立即播放$" + url);
|
||||
}
|
||||
VodName = doc.select("head > title").text();
|
||||
JSONObject result = new JSONObject();
|
||||
vodAtom.put("vod_name", VodName);
|
||||
|
||||
vodAtom.put("vod_play_from", "jx");
|
||||
lists.put(vodAtom);
|
||||
result.put("list", lists);
|
||||
return result.toString();
|
||||
@@ -828,13 +826,14 @@ public class PushAgent extends Spider {
|
||||
return result.toString();
|
||||
}
|
||||
}
|
||||
if(flag.startsWith("嗅探")||flag.equals("parse")){
|
||||
result.put("parse", 1);
|
||||
result.put("playUrl", "");
|
||||
result.put("url", id);
|
||||
if(!flag.equals("parse")) result.put("header", Misc.jHeaders(type,id).toString());
|
||||
return result.toString();
|
||||
if(flag.startsWith("嗅探")){
|
||||
result.put("header", Misc.jHeaders(type,id).toString());
|
||||
}
|
||||
if(id.contains("b23.tv"))result.put("header", Misc.jHeaders(1,id).toString());
|
||||
result.put("parse", 1);
|
||||
result.put("playUrl", "");
|
||||
result.put("url", id);
|
||||
return result.toString();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
SpiderDebug.log(e);
|
||||
|
||||
Reference in New Issue
Block a user