add - 自定义视频路径

This commit is contained in:
yangqiang3504
2022-08-25 13:50:53 +08:00
parent 672b0a0e5a
commit 1767c69e0a
3 changed files with 7 additions and 8 deletions
@@ -467,17 +467,13 @@ public class PushAgent extends Spider {
Matcher matcher2 = pattern2.matcher(url);
Matcher matcher = pattern.matcher(url);
List<String> vodItems = new ArrayList<>();
String typeName = Misc.getWebName(url, 0);
if (Misc.isVip(url) && !url.contains("qq.com") && !url.contains("mgtv.com")) {
String typeName = "官源",vpic="";
Document doc = Jsoup.parse(OkHttpUtil.string(url, Misc.Headers(0,url)));
String VodName = doc.select("head > title").text();
JSONObject result = new JSONObject();
JSONArray lists = new JSONArray();
JSONObject vodAtom = new JSONObject();
if(url.contains("iqiyi")) {
typeName = "爱奇艺";
vpic = "http://image.xinjun58.com/sp/pic/bg/iqiyi.jpg";
}else if(url.contains("bili"))vpic="http://image.xinjun58.com/sp/pic/bg/bili.jpg";
vodAtom.put("vod_id", url);
vodAtom.put("vod_name", VodName);
vodAtom.put("vod_pic", pic);
@@ -530,7 +526,7 @@ public class PushAgent extends Spider {
vodAtom.put("vod_id", url);
vodAtom.put("vod_name", VodName);
vodAtom.put("vod_pic", pic);
vodAtom.put("type_name", "腾讯TV");
vodAtom.put("type_name", typeName);
vodAtom.put("vod_year", "");
vodAtom.put("vod_area", "");
vodAtom.put("vod_remarks", remarks);
@@ -574,7 +570,7 @@ public class PushAgent extends Spider {
vodAtom.put("vod_id", url);
vodAtom.put("vod_name", VodNames);
vodAtom.put("vod_pic", pic);
vodAtom.put("type_name", "芒果TV");
vodAtom.put("type_name", typeName);
vodAtom.put("vod_year", "");
vodAtom.put("vod_area", "");
vodAtom.put("vod_remarks", "");
@@ -729,6 +725,7 @@ public class PushAgent extends Spider {
vodAtom.put("vod_name", VodName);
vodAtom.put("vod_pic", pic);
vodAtom.put("type_name", "嗅探");
vodAtom.put("type_name", typeName);
vodAtom.put("vod_content", url);
lists.put(vodAtom);