|
|
@ -1,5 +1,5 @@ |
|
|
|
//寻觅片源
|
|
|
|
//寻觅片源
|
|
|
|
function xunmi(name,data) { |
|
|
|
function xunmi(name,data,hkss) { |
|
|
|
setPageTitle('聚搜>'+name); |
|
|
|
setPageTitle('聚搜>'+name); |
|
|
|
addListener("onClose", $.toString(() => { |
|
|
|
addListener("onClose", $.toString(() => { |
|
|
|
clearMyVar('moviemore'); |
|
|
|
clearMyVar('moviemore'); |
|
|
@ -114,108 +114,110 @@ function xunmi(name,data) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var d = []; |
|
|
|
var d = []; |
|
|
|
let grouplist = datalist.map((list)=>{ |
|
|
|
if(hkss!=1){ |
|
|
|
return list.group||list.type; |
|
|
|
let grouplist = datalist.map((list)=>{ |
|
|
|
}) |
|
|
|
return list.group||list.type; |
|
|
|
//去重复
|
|
|
|
}) |
|
|
|
function uniq(array){ |
|
|
|
//去重复
|
|
|
|
var temp = []; //一个新的临时数组
|
|
|
|
function uniq(array){ |
|
|
|
for(var i = 0; i < array.length; i++){ |
|
|
|
var temp = []; //一个新的临时数组
|
|
|
|
if(temp.indexOf(array[i]) == -1){ |
|
|
|
for(var i = 0; i < array.length; i++){ |
|
|
|
temp.push(array[i]); |
|
|
|
if(temp.indexOf(array[i]) == -1){ |
|
|
|
|
|
|
|
temp.push(array[i]); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return temp; |
|
|
|
} |
|
|
|
} |
|
|
|
return temp; |
|
|
|
grouplist = uniq(grouplist); |
|
|
|
} |
|
|
|
if(xunmigroup&&grouplist.indexOf(xunmigroup)>-1&&grouplist.indexOf(xunmigroup)!=0){ |
|
|
|
grouplist = uniq(grouplist); |
|
|
|
for (var i = 0; i < grouplist.length; i++) { |
|
|
|
if(xunmigroup&&grouplist.indexOf(xunmigroup)>-1&&grouplist.indexOf(xunmigroup)!=0){ |
|
|
|
if (grouplist[i] == xunmigroup) { |
|
|
|
for (var i = 0; i < grouplist.length; i++) { |
|
|
|
grouplist.splice(i, 1); |
|
|
|
if (grouplist[i] == xunmigroup) { |
|
|
|
break; |
|
|
|
grouplist.splice(i, 1); |
|
|
|
} |
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
grouplist.unshift(xunmigroup); |
|
|
|
} |
|
|
|
} |
|
|
|
grouplist.unshift(xunmigroup); |
|
|
|
if(grouplist.indexOf('失败待处理')!=-1&&grouplist.indexOf('失败待处理')!=grouplist.length-1){ |
|
|
|
} |
|
|
|
for (var i = 0; i < grouplist.length; i++) { |
|
|
|
if(grouplist.indexOf('失败待处理')!=-1&&grouplist.indexOf('失败待处理')!=grouplist.length-1){ |
|
|
|
if (grouplist[i] == '失败待处理') { |
|
|
|
for (var i = 0; i < grouplist.length; i++) { |
|
|
|
grouplist.splice(i, 1); |
|
|
|
if (grouplist[i] == '失败待处理') { |
|
|
|
break; |
|
|
|
grouplist.splice(i, 1); |
|
|
|
} |
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
grouplist.push('失败待处理'); |
|
|
|
} |
|
|
|
} |
|
|
|
grouplist.push('失败待处理'); |
|
|
|
var datalist2 = []; |
|
|
|
} |
|
|
|
for(var i in grouplist){ |
|
|
|
var datalist2 = []; |
|
|
|
var lists = datalist.filter(item => { |
|
|
|
for(var i in grouplist){ |
|
|
|
return item.group==grouplist[i] || !item.group&&item.type==grouplist[i]; |
|
|
|
var lists = datalist.filter(item => { |
|
|
|
}) |
|
|
|
return item.group==grouplist[i] || !item.group&&item.type==grouplist[i]; |
|
|
|
if(grouplist[i]==xunmigroup){datalist2 = lists;} |
|
|
|
}) |
|
|
|
let groupname = grouplist[i]+'('+lists.length+')'; |
|
|
|
if(grouplist[i]==xunmigroup){datalist2 = lists;} |
|
|
|
let groupmenu = getMyVar('groupmenu')?getMyVar('groupmenu').split(','):[]; |
|
|
|
let groupname = grouplist[i]+'('+lists.length+')'; |
|
|
|
groupmenu.push(groupname); |
|
|
|
let groupmenu = getMyVar('groupmenu')?getMyVar('groupmenu').split(','):[]; |
|
|
|
putMyVar('groupmenu',groupmenu.join(',')); |
|
|
|
groupmenu.push(groupname); |
|
|
|
d.push({ |
|
|
|
putMyVar('groupmenu',groupmenu.join(',')); |
|
|
|
title: grouplist[i]==xunmigroup?'‘‘’’<b><span style="color:#3399cc">'+groupname:groupname, |
|
|
|
d.push({ |
|
|
|
url: $('#noLoading#').lazyRule((bess,datalist,name,count,groupname)=>{ |
|
|
|
title: grouplist[i]==xunmigroup?'‘‘’’<b><span style="color:#3399cc">'+groupname:groupname, |
|
|
|
let groupmenu = getMyVar('groupmenu')?getMyVar('groupmenu').split(','):[]; |
|
|
|
url: $('#noLoading#').lazyRule((bess,datalist,name,count,groupname)=>{ |
|
|
|
for(let i in groupmenu){ |
|
|
|
let groupmenu = getMyVar('groupmenu')?getMyVar('groupmenu').split(','):[]; |
|
|
|
if(groupmenu[i]==groupname){ |
|
|
|
for(let i in groupmenu){ |
|
|
|
putMyVar("selectgroup",groupname); |
|
|
|
if(groupmenu[i]==groupname){ |
|
|
|
updateItem(groupname,{title:'‘‘’’<b><span style="color:#3399cc">'+groupmenu[i]}) |
|
|
|
putMyVar("selectgroup",groupname); |
|
|
|
}else{ |
|
|
|
updateItem(groupname,{title:'‘‘’’<b><span style="color:#3399cc">'+groupmenu[i]}) |
|
|
|
updateItem(groupmenu[i],{title:groupmenu[i]}) |
|
|
|
}else{ |
|
|
|
} |
|
|
|
updateItem(groupmenu[i],{title:groupmenu[i]}) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(getMyVar("starttask","0")=="1"){putMyVar("stoptask","1");} |
|
|
|
if(getMyVar("starttask","0")=="1"){putMyVar("stoptask","1");} |
|
|
|
let waittime = parseInt(getMyVar("xunmitimeout","5"))+1; |
|
|
|
let waittime = parseInt(getMyVar("xunmitimeout","5"))+1; |
|
|
|
for (let i = 0; i < waittime; i++) { |
|
|
|
for (let i = 0; i < waittime; i++) { |
|
|
|
if(getMyVar("starttask","0")=="0"){ |
|
|
|
if(getMyVar("starttask","0")=="0"){ |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
showLoading('等待上次线程结束,'+(waittime-i-1)+'s'); |
|
|
|
|
|
|
|
java.lang.Thread.sleep(1000); |
|
|
|
} |
|
|
|
} |
|
|
|
showLoading('等待上次线程结束,'+(waittime-i-1)+'s'); |
|
|
|
hideLoading(); |
|
|
|
java.lang.Thread.sleep(1000); |
|
|
|
let beresults = []; |
|
|
|
} |
|
|
|
let beerrors = []; |
|
|
|
hideLoading(); |
|
|
|
deleteItemByCls('xunmilist'); |
|
|
|
let beresults = []; |
|
|
|
putMyVar("starttask","1"); |
|
|
|
let beerrors = []; |
|
|
|
bess(datalist,beresults,beerrors,name,count); |
|
|
|
deleteItemByCls('xunmilist'); |
|
|
|
return'hiker://empty'; |
|
|
|
putMyVar("starttask","1"); |
|
|
|
},bess,lists,name,lists.length,groupname), |
|
|
|
bess(datalist,beresults,beerrors,name,count); |
|
|
|
col_type: "scroll_button", |
|
|
|
return'hiker://empty'; |
|
|
|
extra: { |
|
|
|
},bess,lists,name,lists.length,groupname), |
|
|
|
id: groupname |
|
|
|
col_type: "scroll_button", |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
d.push({ |
|
|
|
|
|
|
|
title: count>0?'加载中...':'没有接口,无法搜索', |
|
|
|
|
|
|
|
url: "hiker://empty", |
|
|
|
|
|
|
|
col_type: "text_center_1", |
|
|
|
extra: { |
|
|
|
extra: { |
|
|
|
id: groupname |
|
|
|
id: "loading" |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
d.push({ |
|
|
|
d.push({ |
|
|
|
title: '<br>', |
|
|
|
title: count>0?'加载中...':'没有接口,无法搜索', |
|
|
|
col_type: 'rich_text' |
|
|
|
url: "hiker://empty", |
|
|
|
}); |
|
|
|
col_type: "text_center_1", |
|
|
|
|
|
|
|
extra: { |
|
|
|
if(datalist2.length>0){ |
|
|
|
id: "loading" |
|
|
|
datalist = datalist2; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
if(getMyVar('selectgroup','a').indexOf('失败待处理')==-1&&xunmigroup!="失败待处理"&&grouplist.length>1){ |
|
|
|
d.push({ |
|
|
|
for(var i=0;i<datalist.length;i++){ |
|
|
|
title: '<br>', |
|
|
|
if(datalist[i].group=="失败待处理"){ |
|
|
|
col_type: 'rich_text' |
|
|
|
datalist.splice(i,1); |
|
|
|
}); |
|
|
|
} |
|
|
|
setHomeResult(d); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(datalist2.length>0){ |
|
|
|
|
|
|
|
datalist = datalist2; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(getMyVar('selectgroup','a').indexOf('失败待处理')==-1&&xunmigroup!="失败待处理"&&grouplist.length>1){ |
|
|
|
|
|
|
|
for(var i=0;i<datalist.length;i++){ |
|
|
|
|
|
|
|
if(datalist[i].group=="失败待处理"){ |
|
|
|
|
|
|
|
datalist.splice(i,1); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
setHomeResult(d); |
|
|
|
|
|
|
|
|
|
|
|
var count = datalist.length; |
|
|
|
var count = datalist.length; |
|
|
|
var beresults = []; |
|
|
|
var beresults = []; |
|
|
|
var beerrors = []; |
|
|
|
var beerrors = []; |
|
|
@ -338,7 +340,7 @@ function xunmi(name,data) { |
|
|
|
if(vodname.indexOf(name)>-1){ |
|
|
|
if(vodname.indexOf(name)>-1){ |
|
|
|
let vodpic = list.vod_pic||list.pic; |
|
|
|
let vodpic = list.vod_pic||list.pic; |
|
|
|
let voddesc = list.vod_remarks||list.state||""; |
|
|
|
let voddesc = list.vod_remarks||list.state||""; |
|
|
|
let appname = '‘‘’’<font color=#f13b66a>'+obj.name+'</font>'; |
|
|
|
let appname = '‘‘’’<font color=#f13b66a>'+obj.name+'</font>'+' ('+obj.type+')'+(obj.group&&obj.group!=obj.type?' ['+obj.group+']':''); |
|
|
|
let vodurl = list.vod_id?url + list.vod_id:list.nextlink; |
|
|
|
let vodurl = list.vod_id?url + list.vod_id:list.nextlink; |
|
|
|
vodpic = vodpic?vodpic.replace('/img.php?url=','').replace('/tu.php?tu=','') + "@Referer=":"https://www.xawqxh.net/mxtheme/images/loading.gif"; |
|
|
|
vodpic = vodpic?vodpic.replace('/img.php?url=','').replace('/tu.php?tu=','') + "@Referer=":"https://www.xawqxh.net/mxtheme/images/loading.gif"; |
|
|
|
if(/^\/upload|^upload/.test(vodpic)){ |
|
|
|
if(/^\/upload|^upload/.test(vodpic)){ |
|
|
@ -349,8 +351,8 @@ function xunmi(name,data) { |
|
|
|
} |
|
|
|
} |
|
|
|
return { |
|
|
|
return { |
|
|
|
title: vodname!=name?vodname.replace(name,'‘‘’’<font color=red>'+name+'</font>'):vodname, |
|
|
|
title: vodname!=name?vodname.replace(name,'‘‘’’<font color=red>'+name+'</font>'):vodname, |
|
|
|
desc: voddesc + '\n\n' + appname + ' ('+obj.type+')'+(obj.group&&obj.group!=obj.type?' ['+obj.group+']':''), |
|
|
|
desc: voddesc + '\n\n' + appname, |
|
|
|
content: appname + ' ('+obj.type+')'+(obj.group&&obj.group!=obj.type?' ['+obj.group+']':''), |
|
|
|
content: appname, |
|
|
|
pic_url: vodpic, |
|
|
|
pic_url: vodpic, |
|
|
|
url: $("hiker://empty##" + vodurl + "#immersiveTheme#").rule((type,ua) => { |
|
|
|
url: $("hiker://empty##" + vodurl + "#immersiveTheme#").rule((type,ua) => { |
|
|
|
require(config.依赖.match(/https.*\//)[0] + 'SrcJyXunmi.js'); |
|
|
|
require(config.依赖.match(/https.*\//)[0] + 'SrcJyXunmi.js'); |
|
|
@ -458,7 +460,7 @@ function xunmi(name,data) { |
|
|
|
if(vodname.indexOf(name)>-1){ |
|
|
|
if(vodname.indexOf(name)>-1){ |
|
|
|
let vodpic = list.pic.replace('/tu.php?tu=','').replace('/img.php?url=',''); |
|
|
|
let vodpic = list.pic.replace('/tu.php?tu=','').replace('/img.php?url=',''); |
|
|
|
let voddesc = list.desc?list.desc:""; |
|
|
|
let voddesc = list.desc?list.desc:""; |
|
|
|
let appname = '‘‘’’<font color=#f13b66a>'+obj.name+'</font>'; |
|
|
|
let appname = '‘‘’’<font color=#f13b66a>'+obj.name+'</font>'+' ('+obj.type+')'+(obj.group&&obj.group!=obj.type?' ['+obj.group+']':''); |
|
|
|
let vodurl = eval(ssvodurl); |
|
|
|
let vodurl = eval(ssvodurl); |
|
|
|
if(/^\/upload|^upload/.test(vodpic)){ |
|
|
|
if(/^\/upload|^upload/.test(vodpic)){ |
|
|
|
vodpic = vodurl.match(/http(s)?:\/\/(.*?)\//)[0] + vodpic; |
|
|
|
vodpic = vodurl.match(/http(s)?:\/\/(.*?)\//)[0] + vodpic; |
|
|
@ -468,7 +470,8 @@ function xunmi(name,data) { |
|
|
|
} |
|
|
|
} |
|
|
|
return { |
|
|
|
return { |
|
|
|
title: vodname!=name?vodname.replace(name,'‘‘’’<font color=red>'+name+'</font>'):vodname, |
|
|
|
title: vodname!=name?vodname.replace(name,'‘‘’’<font color=red>'+name+'</font>'):vodname, |
|
|
|
desc: voddesc + '\n\n' + appname + ' ('+obj.type+')'+(obj.group?' ['+obj.group+']':''), |
|
|
|
desc: voddesc + '\n\n' + appname, |
|
|
|
|
|
|
|
content: appname, |
|
|
|
pic_url: vodpic?vodpic + "@Referer=":"https://www.xawqxh.net/mxtheme/images/loading.gif", |
|
|
|
pic_url: vodpic?vodpic + "@Referer=":"https://www.xawqxh.net/mxtheme/images/loading.gif", |
|
|
|
url: $("hiker://empty##" + vodurl + "#immersiveTheme#").rule((type,ua) => { |
|
|
|
url: $("hiker://empty##" + vodurl + "#immersiveTheme#").rule((type,ua) => { |
|
|
|
require(config.依赖.match(/https.*\//)[0] + 'SrcJyXunmi.js'); |
|
|
|
require(config.依赖.match(/https.*\//)[0] + 'SrcJyXunmi.js'); |
|
|
|