mirror of
https://github.com/qist/tvbox.git
synced 2026-04-21 15:02:44 +00:00
update
This commit is contained in:
30
js/tzfile.js
30
js/tzfile.js
@@ -40,7 +40,7 @@ let list = pdfa(html, '#primary-home ul li:has(img)');
|
||||
list.forEach(function(it) {
|
||||
d.push({
|
||||
title: pdfh(it, 'img&&alt'),
|
||||
desc: pdfh(it, 'div.post-info div.list-footer time.b2timeago&&Text') + '/' + pdfh(it, 'div.post-info div.list-footer a&&Text'),
|
||||
desc: pdfh(it, 'div.post-info .post-list-cat&&Text'),
|
||||
pic_url: 'http://127.0.0.1:10079/i/0/s/'+pd(it, 'img&&src', HOST),
|
||||
url: pd(it, 'a&&href', HOST)
|
||||
});
|
||||
@@ -100,5 +100,31 @@ d.forEach(function(it) {
|
||||
`,
|
||||
|
||||
},
|
||||
搜索:'#primary-home ul li:has(img);img&&alt;img&&src;div.post-info div.list-fotter time.b2timeago&&Text;a&&href',
|
||||
搜索:`js:
|
||||
//'#primary-home ul li:has(img);img&&alt;img&&src;div.post-info .post-list-cat&&Text;a&&href',
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
let html = request(input);
|
||||
let d=[];
|
||||
let dlist = pdfa(html, '#primary-home ul li:has(img)');
|
||||
dlist.forEach(function(it){
|
||||
let title=pdfh(it, 'img&&alt');
|
||||
if (title.includes(KEY)){
|
||||
if (searchObj.quick === true){
|
||||
title = KEY;
|
||||
}
|
||||
let img='http://127.0.0.1:10079/i/0/s/' + pd(it, 'img&&src',HOST);
|
||||
let content=pdfh(it, 'div.text_info h2&&Text');
|
||||
let url=pd(it, 'a&&href', HOST);
|
||||
let desc=pdfh(it, 'p.info&&Text');
|
||||
d.push({
|
||||
title:title,
|
||||
img:img,
|
||||
content:content,
|
||||
desc:desc,
|
||||
url:url
|
||||
})
|
||||
}
|
||||
});
|
||||
setResult(d);
|
||||
`,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user