TV-BOX/tvbox/yinshiyuan/tv/js/avtoda.js.bak
yuanwangokk-1 7fb1457e88 main
2025-10-14 22:54:33 +08:00

47 lines
No EOL
1.5 KiB
JavaScript

var rule = {
title: 'avtoday',
host: 'https://avtoday.io',
url: '/catalog/fyclass?page=fypage',
searchUrl: 'https://avtoday.io/search?s=**',
//class_parse: '.nav a;script&&Text;a&&href;.*/(.*?).html',
class_name: '無碼&制服&絲襪&蘿莉&多人&長腿',
class_url: '無碼&制服&絲襪&蘿莉&多人&長腿',
searchable: 2,
quickSearch: 0,
filterable: 0,
headers: {
'User-Agent': 'MOBILE_UA',
'Referer': 'https://avtoday.io'
},
play_parse: true,
lazy: `js:
let kcode=jsp.pdfh(request(input), 'iframe&&src').replace(/^\\./ ,'https://avtoday.io');
log(kcode)
let kurl=request(kcode).match(/m3u8_url = '(.*?)'/)[1];
if (/m3u8|mp4/.test(kurl)) {
input ={ url: kurl + ';{Referer@'+input+'input'}'}
} else {
input = { jx: 0, parse: 1, url: rule.parse_url+kurl }
}`,
limit: 6,
推荐: '.swiper;a;h2&&Text;img&&src;;a:eq(0)&&href',
double: true,
一级: `js:
pdfh = jsp.pdfh, pdfa = jsp.pdfa, pd = jsp.pd;
var d = [];
let html = fetch(input, {});
var list = pdfa(html, '.album&&.thumbnail');
for (var i = 0; i < list.length; i++) {
d.push({
title: pdfh(list[i], '.video-title&&a&&Text'),
desc: pdfh(list[i], '.video-duration&&Text'),
pic_url: pdfh(list[i], 'img&&src').replace(/^\\./ ,'https://avtoday.io') + '@Referer=',
url: pdfh(list[i], 'a&&href').replace(/^\\./ ,'https://avtoday.io'),
});
}
setResult(d);`,
二级: '*',
搜索: '*',
}