更新 'SrcJyData.js'

master
src48597962 9 months ago
parent 3957daf43c
commit d7e39053f8
  1. 33
      SrcJyData.js

@ -286,12 +286,19 @@ function getYiData(jkdata) {
}
}
}catch(e){
log(api_name+'>访问异常,请更换源接口!获取分类失败>'+e.message + " 错误行#" + e.lineNumber);
d.push({
title: '获取分类数据失败!',
desc: '看一下日志具体信息',
url: classurl + '#noHistory#',
col_type: 'text_center_1'
});
log(api_name+'>获取分类数据异常>'+e.message + " 错误行#" + e.lineNumber);
}
storage0.putMyVar('SrcJu_dianbo$classCache', {分类:分类,类型:类型,剧情:剧情,地区:地区,年份:年份,排序:排序,筛选:筛选,推荐:推荐});
}
if(分类.length>0){
try{
if(筛选){
d.push({
title: fold === '1' ? '““””<b><span style="color: #F54343">∨</span></b>' : '““””<b><span style="color:' + Color + '">∧</span></b>',
@ -470,6 +477,15 @@ function getYiData(jkdata) {
titleVisible: true
}
});
}catch(e){
d.push({
title: '生成分类数据失败!',
desc: e.message,
url: 'hiker://empty',
col_type: 'text_center_1'
});
log(api_name+'>生成分类数据异常>'+e.message + " 错误行#" + e.lineNumber);
}
}
}
}
@ -523,9 +539,6 @@ function getYiData(jkdata) {
note = _pdfh(it, dws[3]);
lists.push({"vod_id":id,"vod_name":name,"vod_remarks":note,"vod_pic":pic});
})
if(vodlist.length==0){
lists.push({"vod_id":'hiker://empty',"vod_name":'未获取到列表',"vod_remarks":'列表为空',"vod_pic":'hiker://files/cache/src/picloading.gif'});
}
}else if(api_type=="XBPQ"){
extdata["二次截取"] = extdata["二次截取"] || (gethtml.indexOf(`<ul class="stui-vodlist`)>-1?`<ul class="stui-vodlist&&</ul>`:gethtml.indexOf(`<ul class="myui-vodlist`)>-1?`<ul class="myui-vodlist&&</ul>`:"");
if(extdata["二次截取"]){
@ -597,17 +610,16 @@ function getYiData(jkdata) {
}
}
}catch(e){
log(api_name+' 接口访问异常,请更换接口!获取影片失败>'+e.message + " 错误行#" + e.lineNumber)
}
}
if(lists.length==0){
d.push({
title: '接口访问异常,请更换接口!',
title: '获取列表数据失败!',
desc: '点击访问原网页',
url: MY_URL + '#noHistory#',
col_type: 'text_center_1'
});
}else{
log(api_name+'>获取列表异常>'+e.message + " 错误行#" + e.lineNumber)
}
}
lists.forEach((list)=>{
let vodname = list.vod_name||list.title;
vodname = vodname.replace(/<\/?.+?\/?>/g,'');
@ -645,7 +657,6 @@ function getYiData(jkdata) {
})
}
});
}
return d;
}

Loading…
Cancel
Save