|
|
|
@ -6,38 +6,82 @@ function jiekouyiji() { |
|
|
|
|
clearMyVar('isverifyA'); |
|
|
|
|
})); |
|
|
|
|
*/ |
|
|
|
|
var filepath = "hiker://files/rules/Src/Juying/jiekou.json"; |
|
|
|
|
var datafile = fetch(filepath); |
|
|
|
|
if(datafile != ""){ |
|
|
|
|
eval("var datalist=" + datafile+ ";"); |
|
|
|
|
}else{ |
|
|
|
|
var datalist = []; |
|
|
|
|
} |
|
|
|
|
datalist = datalist.filter(item => { |
|
|
|
|
return item.type!="xpath" && item.type!="biubiu"; |
|
|
|
|
}) |
|
|
|
|
let api_type = "cms"; |
|
|
|
|
let api_url = "http://49.232.165.26/hi.php/provide/vod/"; |
|
|
|
|
let api_ua = MOBILE_UA; |
|
|
|
|
let xunmitimeout = 5; |
|
|
|
|
|
|
|
|
|
if (api_type=="v1") { |
|
|
|
|
let date = new Date(); |
|
|
|
|
let mm = date.getMonth()+1; |
|
|
|
|
let dd = date.getDate(); |
|
|
|
|
let key = (mm<10?"0"+mm:mm)+""+(dd<10?"0"+dd:dd); |
|
|
|
|
var classurl = url_api + '/detail?&key='+key+'&vod_id='; |
|
|
|
|
var listurl = url_api + '?ac=videolist&limit=10&wd='+name+'&key='+key; |
|
|
|
|
} else if (api_type=="app") { |
|
|
|
|
var url = url_api + 'video_detail?id='; |
|
|
|
|
var ssurl = url_api + 'search?limit=10&text='+name; |
|
|
|
|
} else if (api_type=="v2") { |
|
|
|
|
var url = url_api + 'video_detail?id='; |
|
|
|
|
var ssurl = url_api + 'search?limit=10&text='+name; |
|
|
|
|
} else if (api_type=="iptv") { |
|
|
|
|
var url = url_api + '?ac=detail&ids='; |
|
|
|
|
var ssurl = url_api + '?ac=list&zm='+name+'&wd='+name;
|
|
|
|
|
} else if (api_type=="cms") { |
|
|
|
|
var classurl = api_url + "?ac=list"; |
|
|
|
|
var listurl = url_api + '?ac=videolist&wd='+name; |
|
|
|
|
} else { |
|
|
|
|
log('api类型错误') |
|
|
|
|
} |
|
|
|
|
let api_class = JSON.parse(request(classurl, { headers: { 'User-Agent': api_ua }, timeout:xunmitimeout*1000 })).class; |
|
|
|
|
let type_pids = []; |
|
|
|
|
for(let i in api_class){ |
|
|
|
|
if(type_pids.indexOf(api_class[i].type_pid)){type_pids.push(api_class[i].type_pid)} |
|
|
|
|
} |
|
|
|
|
if(type_pids.length > 0){ |
|
|
|
|
type_pids.sort((a, b) => { |
|
|
|
|
return a - b |
|
|
|
|
}) |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var d = []; |
|
|
|
|
const Color = "#3399cc"; |
|
|
|
|
const categorys = ['电视剧','电影','动漫','综艺','纪录片']; |
|
|
|
|
const listTabs = ['teleplay','film','cartoon','tvshow','documentary']; |
|
|
|
|
const fold = getMyVar('SrcJuying$fold', "0"); |
|
|
|
|
const 类型 = getMyVar('SrcJuying$类型', ''); |
|
|
|
|
const 地区 = getMyVar('SrcJuying$地区', ''); |
|
|
|
|
const 年代 = getMyVar('SrcJuying$年代', ''); |
|
|
|
|
const 资源 = getMyVar('SrcJuying$资源', ''); |
|
|
|
|
const 明星 = getMyVar('SrcJuying$明星', ''); |
|
|
|
|
const 排序 = getMyVar('SrcJuying$排序', ''); |
|
|
|
|
MY_URL = "https://waptv.sogou.com/napi/video/classlist?abtest=0&iploc=CN1304&spver=&listTab=" + getMyVar('SrcJuying$listTab', 'teleplay') + "&filter=&start="+ (MY_PAGE-1)*15 +"&len=15&fr=filter"; |
|
|
|
|
|
|
|
|
|
if(类型 != ""){ |
|
|
|
|
MY_URL = MY_URL + "&style=" + 类型; |
|
|
|
|
} |
|
|
|
|
if(地区 != ""){ |
|
|
|
|
MY_URL = MY_URL + "&zone=" + 地区; |
|
|
|
|
} |
|
|
|
|
if(年代 != ""){ |
|
|
|
|
MY_URL = MY_URL + "&year=" + 年代; |
|
|
|
|
} |
|
|
|
|
if(资源 != ""){ |
|
|
|
|
MY_URL = MY_URL + "&fee=" + 资源; |
|
|
|
|
} |
|
|
|
|
if(明星 != ""){ |
|
|
|
|
MY_URL = MY_URL + "&emcee=" + 明星; |
|
|
|
|
} |
|
|
|
|
if(排序 != ""){ |
|
|
|
|
MY_URL = MY_URL + "&order=" + (排序=="最新"?"time":"score"); |
|
|
|
|
for (var j in type_pids) { |
|
|
|
|
for (var i in api_class) { |
|
|
|
|
if(api_class.type_pid==j){ |
|
|
|
|
d.push({ |
|
|
|
|
title: api_class[i].type_name, |
|
|
|
|
url: "hiker://empty", |
|
|
|
|
col_type: 'scroll_button' |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
d.push({ |
|
|
|
|
col_type: "blank_block" |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//const categorys = ['电视剧','电影','动漫','综艺','纪录片'];
|
|
|
|
|
//const listTabs = ['teleplay','film','cartoon','tvshow','documentary'];
|
|
|
|
|
|
|
|
|
|
//MY_URL = "https://waptv.sogou.com/napi/video/classlist?abtest=0&iploc=CN1304&spver=&listTab=" + getMyVar('SrcJuying$listTab', 'teleplay') + "&filter=&start="+ (MY_PAGE-1)*15 +"&len=15&fr=filter";
|
|
|
|
|
/* |
|
|
|
|
var cfgfile = "hiker://files/rules/Src/Juying/config.json"; |
|
|
|
|
var Juyingcfg=fetch(cfgfile); |
|
|
|
|
if(Juyingcfg != ""){ |
|
|
|
@ -46,40 +90,7 @@ function jiekouyiji() { |
|
|
|
|
var JYconfig= {}; |
|
|
|
|
} |
|
|
|
|
if(MY_PAGE==1){ |
|
|
|
|
d.push({ |
|
|
|
|
title: "管理", |
|
|
|
|
url: $("hiker://empty#noRecordHistory##noHistory#").rule(() => { |
|
|
|
|
require(config.依赖.match(/https.*\//)[0] + 'SrcJySet.js'); |
|
|
|
|
SRCSet(); |
|
|
|
|
}), |
|
|
|
|
pic_url: 'https://lanmeiguojiang.com/tubiao/more/129.png', |
|
|
|
|
col_type: 'icon_small_4' |
|
|
|
|
}); |
|
|
|
|
d.push({ |
|
|
|
|
title: JYconfig['recordentry']!=2?"历史":"收藏", |
|
|
|
|
url: JYconfig['recordentry']!=2?"hiker://history":"hiker://collection", |
|
|
|
|
pic_url: 'https://lanmeiguojiang.com/tubiao/more/109.png', |
|
|
|
|
col_type: 'icon_small_4' |
|
|
|
|
}); |
|
|
|
|
d.push({ |
|
|
|
|
title: "搜索", |
|
|
|
|
url: $("hiker://empty#noRecordHistory##noHistory#").rule(() => { |
|
|
|
|
require(config.依赖); |
|
|
|
|
sousuo2(); |
|
|
|
|
}), |
|
|
|
|
pic_url: 'https://lanmeiguojiang.com/tubiao/more/101.png', |
|
|
|
|
col_type: 'icon_small_4' |
|
|
|
|
}); |
|
|
|
|
d.push({ |
|
|
|
|
title: "筛选", |
|
|
|
|
url: $('#noLoading#').lazyRule((fold) => { |
|
|
|
|
putMyVar('SrcJuying$fold', fold === '1' ? '0' : '1'); |
|
|
|
|
refreshPage(false); |
|
|
|
|
return "hiker://empty"; |
|
|
|
|
}, fold), |
|
|
|
|
pic_url: fold === '1'?'https://lanmeiguojiang.com/tubiao/more/213.png':'https://lanmeiguojiang.com/tubiao/more/172.png', |
|
|
|
|
col_type: 'icon_small_4' |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
d.push({ |
|
|
|
|
col_type: 'line' |
|
|
|
|
}); |
|
|
|
@ -104,40 +115,9 @@ function jiekouyiji() { |
|
|
|
|
col_type: "blank_block" |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
var html = JSON.parse(request(MY_URL)); |
|
|
|
|
|
|
|
|
|
if(fold==='1'){ |
|
|
|
|
var filter = html.listData.list.filter_list; |
|
|
|
|
for (var i in filter) { |
|
|
|
|
d.push({ |
|
|
|
|
title: filter[i].name=="排序"?排序==""?'““””<span style="color:red">最热</span>':"最热":(类型==""&&filter[i].name=="类型")||(地区==""&&filter[i].name=="地区")||(年代==""&&filter[i].name=="年代")||(资源==""&&filter[i].name=="资源")||(明星==""&&filter[i].name=="明星")?'““””<span style="color:red">全部</span>':"全部", |
|
|
|
|
url: $('#noLoading#').lazyRule((name) => { |
|
|
|
|
putMyVar('SrcJuying$'+name, ''); |
|
|
|
|
refreshPage(false); |
|
|
|
|
return "hiker://empty"; |
|
|
|
|
}, filter[i].name), |
|
|
|
|
col_type: 'scroll_button', |
|
|
|
|
}) |
|
|
|
|
let option_list = filter[i].option_list; |
|
|
|
|
for (var j in option_list) { |
|
|
|
|
d.push({ |
|
|
|
|
title: getMyVar('SrcJuying$'+filter[i].name, '')==option_list[j]?'““””<span style="color:red">'+option_list[j]+'</span>':option_list[j], |
|
|
|
|
url: $('#noLoading#').lazyRule((name,option) => { |
|
|
|
|
putMyVar('SrcJuying$'+name, option); |
|
|
|
|
refreshPage(false); |
|
|
|
|
return "hiker://empty"; |
|
|
|
|
}, filter[i].name, option_list[j]), |
|
|
|
|
col_type: 'scroll_button' |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
d.push({ |
|
|
|
|
col_type: "blank_block" |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
var html = JSON.parse(request(MY_URL)); |
|
|
|
|
} |
|
|
|
|
var html = JSON.parse(request(MY_URL)); |
|
|
|
|
|
|
|
|
|
var seachurl = $('').lazyRule(() => { |
|
|
|
|
return $('hiker://empty#noRecordHistory##noHistory#').rule((name) => { |
|
|
|
|
require(config.依赖.match(/https.*\//)[0] + 'SrcJyXunmi.js'); |
|
|
|
@ -158,7 +138,7 @@ function jiekouyiji() { |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
setResult(d); |
|
|
|
|
} |
|
|
|
|
//二级
|
|
|
|
|