parent
7ca6068b40
commit
9c31edc058
@ -1,34 +1,18 @@ |
|||||||
js: |
js: |
||||||
let d = []; |
let d = []; |
||||||
let Color = "#f13b66a"; |
setPageTitle(MY_PARAMS.title); |
||||||
let html = request("https://getpodcast.xyz/"); |
MY_URL = MY_URL.split('##')[1]; |
||||||
//log(html)
|
let html = request(MY_URL); |
||||||
let class_ids = pdfa(html, "body&&.classify_title"); |
let lists = pdfa(html, "body&&item"); |
||||||
let classlists = pdfa(html, "body&&.pic_list"); |
//log(lists)
|
||||||
for (let i in class_ids) { |
|
||||||
let classname = pdfh(class_ids[i],"body&&Text"); |
|
||||||
d.push({ |
|
||||||
title: getMyVar('SrcBoKe$classname', '播客') === classname ? '““””<b><span style="color:' + Color + '">' + classname + '</span></b>' : classname, |
|
||||||
url: $('#noLoading#').lazyRule((classname, i) => { |
|
||||||
putMyVar('SrcBoKe$classname', classname); |
|
||||||
putMyVar('SrcBoKe$classid', i); |
|
||||||
refreshPage(false); |
|
||||||
return "hiker://empty"; |
|
||||||
}, classname, i), |
|
||||||
col_type: 'scroll_button' |
|
||||||
}); |
|
||||||
} |
|
||||||
|
|
||||||
let lists = pdfa(classlists[Math.floor(getMyVar('SrcBoKe$classid','0'))], "body&&li"); |
|
||||||
lists.forEach(item => { |
lists.forEach(item => { |
||||||
d.push({ |
d.push({ |
||||||
title: pdfh(item, ".title&&Text"), |
title: item.match(/<title>(.*?)<\/title>/)[1], |
||||||
url: "hiker://empty##" + pdfh(item, "a&&href"), |
desc: pdfh(item, "description&&Text"), |
||||||
pic: pdfh(item, ".pic&&img&&src"), |
url: pdfh(item, "enclosure&&url"), |
||||||
col_type: 'card_pic_2' |
img: item.match(/image href="(.*?)"/)[1], |
||||||
}); |
col_type: 'movie_1_left_pic' |
||||||
|
}) |
||||||
}) |
}) |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setResult(d); |
setResult(d); |
Loading…
Reference in new issue