更新 'SrcJyCustomJk.js'

master
src48597962 2 years ago
parent e323719e50
commit a2f57e13fa
  1. 63
      SrcJyCustomJk.js

@ -70,11 +70,11 @@ let customparse = {
return list; return list;
}, },
csp_custom_zhuiyingmao: function(name) { csp_custom_zhuiyingmao: function(name) {
var list = [];
try { try {
var lists = [];
let html = request("https://zhuiyingmao2.com/index.php/ajax/suggest?mid=1&wd="+name+"&limit=10" ); let html = request("https://zhuiyingmao2.com/index.php/ajax/suggest?mid=1&wd="+name+"&limit=10" );
let data = JSON.parse(html).list; let data = JSON.parse(html).list;
let cook = getCookie('https://zhuiyingmao2.com'); //let cook = getCookie('https://zhuiyingmao2.com');
data.forEach(item => { data.forEach(item => {
let maoname = item.name; let maoname = item.name;
if (maoname == name) { if (maoname == name) {
@ -87,64 +87,25 @@ let customparse = {
"Cookie": cook "Cookie": cook
}; };
let maohtml = request(maourl, { let maohtml = request(maourl, {
headers: headers //headers: headers
}); });
let htmls = pdfa(maohtml, ".search-result-container&&a"); let htmls = pdfa(maohtml, ".search-result-container&&a");
htmls.forEach(it => { htmls.forEach(it => {
try { let sitename = pdfh(it, ".website-name&&Text");
let sitename = pdfh(it, ".website-name&&Text"); let vodurl = pdfh(it, "a&&href");
log(sitename); if (!list.some(ii => ii.url == vodurl)) {
let vodname = pdfh(it, ".title&&Text"); list.push({
log(vodname); vodname: vodname,
let vodurl = pdfh(it, "a&&href"); vodpic: maopic.replace(/http.*?\?url=/,''),
log(vodurl); voddesc: sitename,
if (vodname == maoname && !lists.some(ii => ii.url == vodurl)) { vodurl: vodurl
lists.push({ });
name: vodname,
pic: maopic,
url: vodurl,
site: sitename
});
}
} catch (e) {
//log(e.message);
} }
}); });
log(lists)
} }
}) })
} catch (e) { } catch (e) {
//log(e.message); //log(e.message);
var lists = [];
}
let list = [];
let task = function(obj) {
try {
let vodurl = obj.url;
if (!/qq|mgtv|iptv|iqiyi|youku|bilibili|souhu|cctv|icaqd|cokemv|mhyyy|fun4k|jpys\.me|31kan|37dyw|kpkuang/.test(vodurl) && !list.some(ii => ii.vodurl == vodurl)) {
list.push({
vodname: obj.name,
vodpic: obj.pic.replace(/http.*?\?url=/, ''),
voddesc: obj.site,
vodurl: vodurl
});
}
} catch (e) {}
return 1;
}
let maolist = lists.map((item) => {
return {
func: task,
param: item,
id: item.url
}
});
if (maolist.length > 0) {
be(maolist, {
func: function(obj, id, error, taskResult) {},
param: {}
});
} }
return list; return list;
}, },

Loading…
Cancel
Save