add - 自定义视频路径
This commit is contained in:
@@ -467,17 +467,13 @@ public class PushAgent extends Spider {
|
|||||||
Matcher matcher2 = pattern2.matcher(url);
|
Matcher matcher2 = pattern2.matcher(url);
|
||||||
Matcher matcher = pattern.matcher(url);
|
Matcher matcher = pattern.matcher(url);
|
||||||
List<String> vodItems = new ArrayList<>();
|
List<String> vodItems = new ArrayList<>();
|
||||||
|
String typeName = Misc.getWebName(url, 0);
|
||||||
if (Misc.isVip(url) && !url.contains("qq.com") && !url.contains("mgtv.com")) {
|
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)));
|
Document doc = Jsoup.parse(OkHttpUtil.string(url, Misc.Headers(0,url)));
|
||||||
String VodName = doc.select("head > title").text();
|
String VodName = doc.select("head > title").text();
|
||||||
JSONObject result = new JSONObject();
|
JSONObject result = new JSONObject();
|
||||||
JSONArray lists = new JSONArray();
|
JSONArray lists = new JSONArray();
|
||||||
JSONObject vodAtom = new JSONObject();
|
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_id", url);
|
||||||
vodAtom.put("vod_name", VodName);
|
vodAtom.put("vod_name", VodName);
|
||||||
vodAtom.put("vod_pic", pic);
|
vodAtom.put("vod_pic", pic);
|
||||||
@@ -530,7 +526,7 @@ public class PushAgent extends Spider {
|
|||||||
vodAtom.put("vod_id", url);
|
vodAtom.put("vod_id", url);
|
||||||
vodAtom.put("vod_name", VodName);
|
vodAtom.put("vod_name", VodName);
|
||||||
vodAtom.put("vod_pic", pic);
|
vodAtom.put("vod_pic", pic);
|
||||||
vodAtom.put("type_name", "腾讯TV");
|
vodAtom.put("type_name", typeName);
|
||||||
vodAtom.put("vod_year", "");
|
vodAtom.put("vod_year", "");
|
||||||
vodAtom.put("vod_area", "");
|
vodAtom.put("vod_area", "");
|
||||||
vodAtom.put("vod_remarks", remarks);
|
vodAtom.put("vod_remarks", remarks);
|
||||||
@@ -574,7 +570,7 @@ public class PushAgent extends Spider {
|
|||||||
vodAtom.put("vod_id", url);
|
vodAtom.put("vod_id", url);
|
||||||
vodAtom.put("vod_name", VodNames);
|
vodAtom.put("vod_name", VodNames);
|
||||||
vodAtom.put("vod_pic", pic);
|
vodAtom.put("vod_pic", pic);
|
||||||
vodAtom.put("type_name", "芒果TV");
|
vodAtom.put("type_name", typeName);
|
||||||
vodAtom.put("vod_year", "");
|
vodAtom.put("vod_year", "");
|
||||||
vodAtom.put("vod_area", "");
|
vodAtom.put("vod_area", "");
|
||||||
vodAtom.put("vod_remarks", "");
|
vodAtom.put("vod_remarks", "");
|
||||||
@@ -729,6 +725,7 @@ public class PushAgent extends Spider {
|
|||||||
vodAtom.put("vod_name", VodName);
|
vodAtom.put("vod_name", VodName);
|
||||||
vodAtom.put("vod_pic", pic);
|
vodAtom.put("vod_pic", pic);
|
||||||
vodAtom.put("type_name", "嗅探");
|
vodAtom.put("type_name", "嗅探");
|
||||||
|
vodAtom.put("type_name", typeName);
|
||||||
vodAtom.put("vod_content", url);
|
vodAtom.put("vod_content", url);
|
||||||
|
|
||||||
lists.put(vodAtom);
|
lists.put(vodAtom);
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ public class PushAgentQQ extends Spider {
|
|||||||
v.put("vod_id", url + "$$$" + pic + "$$$" + name);
|
v.put("vod_id", url + "$$$" + pic + "$$$" + name);
|
||||||
v.put("vod_name", name);
|
v.put("vod_name", name);
|
||||||
v.put("vod_pic", pic);
|
v.put("vod_pic", pic);
|
||||||
v.put("vod_remarks", Misc.getWebName(url));
|
v.put("vod_remarks", Misc.getWebName(url,0));
|
||||||
videos.put(v);
|
videos.put(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -255,6 +255,8 @@ public class XBiubiu extends Spider {
|
|||||||
SpiderDebug.log(e);
|
SpiderDebug.log(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
director = ids.get(0);//查看网址
|
||||||
JSONObject vod = new JSONObject();
|
JSONObject vod = new JSONObject();
|
||||||
vod.put("vod_id", ids.get(0));
|
vod.put("vod_id", ids.get(0));
|
||||||
vod.put("vod_name", title);
|
vod.put("vod_name", title);
|
||||||
|
|||||||
Reference in New Issue
Block a user