var rule = { title: '耐看', host: 'https://nkvod.com', url: '/show/fyclass--------fypage---.html', // searchUrl: '/nk/-------------.html?wd=**', searchUrl: '/index.php/rss/index.xml?wd=**', searchable: 2, quickSearch: 0, filterable: 0, headers: { 'User-Agent': 'MOBILE_UA', }, class_parse: '.navbar&&ul&&li;a&&Text;a&&href;/(\\d+).html', play_parse: false, lazy: '', limit: 6, 推荐: '.module-items;a;a&&title;img&&data-original;.module-item-note&&Text;a&&href', double: true, 一级: 'a.module-poster-item.module-item;a&&title;img&&data-original;.module-item-note&&Text;a&&href', 二级: { "title": "h1&&Text;.module-info-tag&&Text", "img": ".lazyload&&data-original", "desc": ".module-info-item:eq(1)&&Text;.module-info-item:eq(2)&&Text;.module-info-item:eq(3)&&Text", "content": ".module-info-introduction&&Text", "tabs": ".hisSwiper&&span", "lists": ".his-tab-list:eq(#id) a" }, // 搜索: 'body .module-item;.module-card-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href;.module-info-item-content&&Text', 搜索: $js.toString(() => { let html = request(input); let items = pdfa(html, 'rss&&item'); // log(items); let d = []; items.forEach(it => { it = it.replace(/title|link|author|pubdate|description/g, 'p'); let url = pdfh(it, 'p:eq(1)&&Text'); d.push({ title: pdfh(it, 'p&&Text'), url: url, desc: pdfh(it, 'p:eq(3)&&Text'), content: pdfh(it, 'p:eq(2)&&Text'), pic_url: "", }); }); setResult(d); }), }