更新 'SrcJyData.js'

master
src48597962 8 months ago
parent cb829aba29
commit 52cf7e3d05
  1. 34
      SrcJyData.js

@ -606,23 +606,23 @@ function getSsData(name, jkdata, page) {
let key = (mm < 10 ? "0" + mm : mm) + "" + (dd < 10 ? "0" + dd : dd);
vodurlhead = api_url + '/detail?&key=' + key + '&vod_id=';
ssurl = api_url + '?ac=videolist&limit=10&wd=' + name + '&key=' + key;
listnode = "html.data.list";
listnode = "json.data.list";
} else if (api_type == "app") {
vodurlhead = api_url + 'video_detail?id=';
ssurl = api_url + 'search?limit=10&text=' + name;
listnode = "html.list";
listnode = "json.list";
} else if (api_type == "v2") {
vodurlhead = api_url + 'video_detail?id=';
ssurl = api_url + 'search?limit=10&text=' + name;
listnode = "html.data";
listnode = "json.data";
} else if (api_type == "iptv") {
vodurlhead = api_url + '?ac=detail&ids=';
ssurl = api_url + '?ac=list&zm=' + name + '&wd=' + name;
listnode = "html.data";
listnode = "json.data";
} else if (api_type == "cms") {
vodurlhead = api_url + '?ac=videolist&ids=';
ssurl = api_url + '?ac=videolist&wd=' + name;
listnode = "html.list";
listnode = "json.list";
} else if (/XPath|biubiu|XBPQ|XYQ/.test(api_type)) {
extdata = extDataCache(jkdata)
if ($.type(extdata) == 'object') {
@ -655,15 +655,8 @@ function getSsData(name, jkdata, page) {
}
}
} else if (api_type=="drpy") {
let apifile = getDrpyFile(jkdata);
if(apifile){
let env = $.require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyDrpy.js');
var drpy = env.createOrGetEnvironment(jkdata.name, apifile);
html = drpy.search(name, 0, page);
log(html);
}else{
html = '{}';
}
vodurlhead = "";
listnode = "json.list";
} else {
log('api类型错误');
return [];
@ -716,6 +709,16 @@ function getSsData(name, jkdata, page) {
try {
if (/v1|app|iptv|v2|cms/.test(api_type)) {
let json;
if(api_type=="drpy"){
let apifile = getDrpyFile(jkdata);
if(apifile){
let env = $.require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyDrpy.js');
let drpy = env.createOrGetEnvironment(jkdata.name, apifile);
json = JSON.parse(drpy.search(name, 0, page));
}else{
json = {};
}
}else{
gethtml = getHtmlCode(ssurl, headers);
if (/cms/.test(api_type)) {
if (gethtml && gethtml.indexOf(name) == -1) {
@ -746,6 +749,7 @@ function getSsData(name, jkdata, page) {
} else {
json = JSON.parse(gethtml.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, ''));
}
}
try {
lists = eval(listnode) || json.list || json.data.list || json.data || [];
@ -763,7 +767,7 @@ function getSsData(name, jkdata, page) {
let vodpic = list.vod_pic || list.pic || "";
let voddesc = list.vod_remarks || list.state || "";
let vodurl = list.vod_id ? vodurlhead + list.vod_id : list.nextlink;
let vodcontent = list.vod_blurb || "";
let vodcontent = list.vod_content || list.vod_blurb || "";
return {
vodname: vodname,
vodpic: vodpic.indexOf('ver.txt') > -1 ? "" : vodpic,

Loading…
Cancel
Save