mirror of
https://github.com/alantang1977/X.git
synced 2024-12-24 02:33:08 +02:00
Add files via upload
This commit is contained in:
parent
c66ce19a02
commit
1e657bfb72
4 changed files with 66 additions and 3 deletions
|
@ -230,7 +230,7 @@ let dlist = pdfa(search_html, 'table.border1');
|
|||
dlist.forEach(function(it){
|
||||
let title = pdfh(it, 'img&&alt');
|
||||
if (searchObj.quick === true){
|
||||
if (title.includes(KEY)){
|
||||
if (false && title.includes(KEY)){
|
||||
title = KEY;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -157,7 +157,7 @@ let dlist = pdfa(search_html, 'div#list_all li');
|
|||
dlist.forEach(function(it){
|
||||
let title = pdfh(it, 'img.lazy&&alt');
|
||||
if (searchObj.quick === true){
|
||||
if (title.includes(KEY)){
|
||||
if (false && title.includes(KEY)){
|
||||
title = KEY;
|
||||
}
|
||||
}
|
||||
|
|
63
js/qimiao.js
Normal file
63
js/qimiao.js
Normal file
|
@ -0,0 +1,63 @@
|
|||
var rule = {
|
||||
title:'奇妙搜[夸]',
|
||||
host:'https://www.magicalsearch.top',
|
||||
homeUrl:'/',
|
||||
url: '/search?',
|
||||
filter_url:'{{fl.class}}',
|
||||
filter:{
|
||||
},
|
||||
搜索编码: 'utf-8',
|
||||
searchUrl: '/api/pshou/getData?type=%E9%98%BF%E9%87%8C%E7%BD%91%E7%9B%98&word=**',
|
||||
searchable:2,
|
||||
quickSearch:0,
|
||||
filterable:0,
|
||||
headers:{
|
||||
'User-Agent': PC_UA,
|
||||
'Accept': '*/*',
|
||||
'Referer': 'https://www.magicalsearch.top/'
|
||||
},
|
||||
timeout:5000,
|
||||
class_name:'',
|
||||
class_url:'',
|
||||
play_parse:true,
|
||||
play_json:[{
|
||||
re:'*',
|
||||
json:{
|
||||
parse:0,
|
||||
jx:0
|
||||
}
|
||||
}],
|
||||
lazy:'',
|
||||
limit:6,
|
||||
推荐:'',
|
||||
一级:'',
|
||||
二级:`js:
|
||||
VOD.vod_play_from = "網盤";
|
||||
VOD.vod_remarks = detailUrl;
|
||||
VOD.vod_actor = "沒有二級,只有一級鏈接直接推送播放";
|
||||
VOD.vod_content = MY_URL;
|
||||
VOD.vod_play_url = "播放$" + detailUrl;
|
||||
`,
|
||||
搜索:`js:
|
||||
let new_html=request(input);
|
||||
//log("qimiao search result>>>>>>>>>>>>>>>" + new_html);
|
||||
let json=JSON.parse(JSON.parse(new_html));
|
||||
json = json.result.items;
|
||||
let d=[];
|
||||
for(const it in json){
|
||||
if (json.hasOwnProperty(it)){
|
||||
log("qimiao search it>>>>>>>>>>>>>>>" + JSON.stringify(json[it]));
|
||||
if (json[it].title.includes(KEY)){
|
||||
d.push({
|
||||
title:json[it].title,
|
||||
img:'',
|
||||
content:json[it].content.title,
|
||||
desc:json[it].insert_time,
|
||||
url:'push://'+json[it].page_url
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
setResult(d);
|
||||
`,
|
||||
}
|
|
@ -258,7 +258,7 @@ let dlist = pdfa(search_html, 'div.mainleft&&ul#post_container&&li');
|
|||
dlist.forEach(function(it){
|
||||
let title = pdfh(it, 'div.thumbnail img&&alt').replace( /(<([^>]+)>)/ig, '');
|
||||
if (searchObj.quick === true){
|
||||
if (title.includes(KEY)){
|
||||
if (false && title.includes(KEY)){
|
||||
title = KEY;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue