diff --git a/js/4khdr.js b/js/4khdr.js index 32a58470..832fc975 100644 --- a/js/4khdr.js +++ b/js/4khdr.js @@ -45,9 +45,9 @@ let tabse = false; d.forEach(function(it) { let burl = pdfh(it, 'a&&href'); if (burl.startsWith("https://www.aliyundrive.com/s/")){ - tabsa.push("阿里云盤"); + tabsa.push("阿里雲盤"); }else if (burl.startsWith("https://pan.quark.cn/s/")){ - tabsq.push("夸克云盤"); + tabsq.push("夸克網盤"); }else if (burl.startsWith("magnet")){ tabsm = true; }else if (burl.startsWith("ed2k")){ diff --git a/js/97tvs.js b/js/97tvs.js new file mode 100644 index 00000000..fbd91684 --- /dev/null +++ b/js/97tvs.js @@ -0,0 +1,203 @@ +var rule = { + title:'高清MP4吧', + host:'https://www.97tvs.com', + homeUrl: '/', + url: '/fyclass/page/fypage?', + filter_url:'{{fl.class}}', + filter:{ + }, + searchUrl: '/?s=**', + searchable:2, + quickSearch:0, + filterable:0, + headers:{ + 'User-Agent': 'PC_UA', + 'Cookie':'', + 'Referer': 'http://www.97tvs.com/' + }, + 图片来源:'@Headers={"Accept":"*/*","Referer":"https://www.97tvs.com/","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36"}', + timeout:5000, + class_name: "动作片&科幻片&爱情片&喜剧片&剧情片&惊悚片&战争片&灾难片&罪案片&动画片&综艺&电视剧", + class_url: "action&science&love&comedy&story&thriller&war&disaster&crime&cartoon&variety&sitcoms", + play_parse:true, + play_json:[{ + re:'*', + json:{ + parse:0, + jx:0 + } + }], + lazy:'', + limit:6, + 推荐:`js: +pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; +let d = []; +let html = request(input); +let list = pdfa(html, 'div.mainleft ul#post_container li'); +list.forEach(it => { + d.push({ + title: pdfh(it, 'div.thumbnail img&&alt'), + desc: pdfh(it, 'div.info&&span.info_date&&Text') + ' / ' + pdfh(it, 'div.info&&span.info_category&&Text'), + pic_url: pd(it, 'div.thumbnail img&&src', HOST), + url: pd(it, 'div.thumbnail&&a&&href',HOST) + }); +}); +setResult(d); + `, + 一级:`js: +pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; +let d = []; +let html = request(input); +let list = pdfa(html, 'div.mainleft ul#post_container li'); +list.forEach(it => { + d.push({ + title: pdfh(it, 'div.thumbnail img&&alt'), + desc: pdfh(it, 'div.info&&span.info_date&&Text') + ' / ' + pdfh(it, 'div.info&&span.info_category&&Text'), + pic_url: pd(it, 'div.thumbnail img&&src', HOST), + url: pd(it, 'div.thumbnail&&a&&href',HOST) + }); +}) +setResult(d); +`, + 二级:{ + title:"div.article_container h1&&Text", + img:"div#post_content img&&src", + desc:"div#post_content&&Text", + content:"div#post_content&&Text", + tabs:`js: +pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; +TABS=[] +let d = pdfa(html, 'div#post_content p'); +let tabsa = []; +let tabsq = []; +let tabsm = false; +let tabse = false; +let tabm3u8 = []; +d.forEach(function(it) { + let burl = pdfh(it, 'a&&href'); + if (burl.startsWith("https://www.aliyundrive.com/s/")){ + tabsa.push("阿里雲盤"); + }else if (burl.startsWith("https://pan.quark.cn/s/")){ + tabsq.push("夸克網盤"); + }else if (burl.startsWith("magnet")){ + tabsm = true; + }else if (burl.startsWith("ed2k")){ + tabse = true; + } +}); +if (tabsm === true){ + TABS.push("磁力"); +} +if (tabse === true){ + TABS.push("電驢"); +} +let tmpIndex; +tmpIndex=1; +tabsa.forEach(function(it){ + TABS.push(it + tmpIndex); + tmpIndex = tmpIndex + 1; +}); +tmpIndex=1; +tabsq.forEach(function(it){ + TABS.push(it + tmpIndex); + tmpIndex = tmpIndex + 1; +}); +tabm3u8.forEach(function(it){ + TABS.push(it); +}); +log('97tvs TABS >>>>>>>>>>>>>>>>>>' + TABS); +`, + lists:`js: +log(TABS); +pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; +LISTS = []; +let d = pdfa(html, 'div#post_content p'); +let lista = []; +let listq = []; +let listm = []; +let liste = []; +let listm3u8 = {}; +d.forEach(function(it){ + let burl = pdfh(it, 'a&&href'); + let title = pdfh(it, 'a&&Text'); + log('97tvs title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); + log('97tvs burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); + let loopresult = title + '$' + burl; + if (burl.startsWith("https://www.aliyundrive.com/s/")){ + if (true){ + if (TABS.length==1){ + burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl); + }else{ + burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl); + } + }else{ + burl = "push://" + burl; + } + loopresult = title + '$' + burl; + lista.push(loopresult); + }else if (burl.startsWith("https://pan.quark.cn/s/")){ + if (true){ + if (TABS.length==1){ + burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl); + }else{ + burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl); + } + }else{ + burl = "push://" + burl; + } + loopresult = title + '$' + burl; + listq.push(loopresult); + }else if (burl.startsWith("magnet")){ + listm.push(loopresult); + }else if (burl.startsWith("ed2k")){ + liste.push(loopresult); + } +}); +if (listm.length>0){ + LISTS.push(listm); +} +if (liste.length>0){ + LISTS.push(liste); +} +lista.forEach(function(it){ + LISTS.push([it]); +}); +listq.forEach(function(it){ + LISTS.push([it]); +}); +for ( const key in listm3u8 ){ + if (listm3u8.hasOwnProperty(key)){ + LISTS.push(listm3u8[key]); + } +}; +`, + + }, + 搜索:`js: +pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; +let search_html = request(input) +//log("97tvs search result>>>>>>>>>>>>>>>" + search_html); +let d=[]; +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 (false && title.includes(KEY)){ + title = KEY; + } + } + let img = pd(it, 'div.thumbnail img&&src', HOST); + let content = pdfh(it, 'div.article div.entry_post&&Text'); + let desc = pdfh(it, 'div.info&&span.info_date&&Text'); + let url = pd(it, 'div.thumbnail&&a&&href', HOST); + d.push({ + title:title, + img:img, + content:content, + desc:desc, + url:url + }); +}); +setResult(d); +`, +} diff --git a/js/aipanso.js b/js/aipanso.js index 79801fce..96d0a922 100644 --- a/js/aipanso.js +++ b/js/aipanso.js @@ -38,7 +38,7 @@ var rule = { tabs:`js: pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; TABS=[] -TABS.push("夸克雲盤"); +TABS.push("夸克網盤"); log('meijumi TABS >>>>>>>>>>>>>>>>>>' + TABS); `, lists:`js: diff --git a/js/ddys.js b/js/ddys.js index d4ef5cd1..120f2c33 100644 --- a/js/ddys.js +++ b/js/ddys.js @@ -152,7 +152,7 @@ let tabsq=[]; d.forEach(function(it){ let burl = pd(it, 'a&&href', HOST); if (burl.includes("pan.quark.cn")){ - tabsq.push("夸克雲盤"); + tabsq.push("夸克網盤"); }else if (burl.includes("www.aliyundrive.com")){ tabsq.push("阿里雲盤"); } diff --git a/js/dydhhy.js b/js/dydhhy.js index 08f520a9..59ae181d 100644 --- a/js/dydhhy.js +++ b/js/dydhhy.js @@ -45,9 +45,9 @@ let tabse = false; d.forEach(function(it) { let burl = pdfh(it, 'a&&href'); if (burl.startsWith("https://www.aliyundrive.com/s/")){ - tabsa.push("阿里云盤"); + tabsa.push("阿里雲盤"); }else if (burl.startsWith("https://pan.quark.cn/s/")){ - tabsq.push("夸克云盤"); + tabsq.push("夸克網盤"); }else if (burl.startsWith("magnet")){ tabsm = true; }else if (burl.startsWith("ed2k")){ diff --git a/js/dygang.js b/js/dygang.js index 5499ffdf..fe342f20 100644 --- a/js/dygang.js +++ b/js/dygang.js @@ -58,18 +58,18 @@ var rule = { tabs:`js: pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; TABS=[] -let d = pdfa(html, '#dede_content table tbody tr a'); +let d = pdfa(html, '#dede_content table tbody tr'); let tabsa = []; let tabsq = []; let tabsm = false; let tabse = false; let tabm3u8 = []; d.forEach(function(it) { - let burl = pdfh(it, 'a&&href'); + let burl = pd(it, 'a&&href',HOST); if (burl.startsWith("https://www.aliyundrive.com/s/")){ - tabsa.push("阿里云盤"); + tabsa.push("阿里雲盤"); }else if (burl.startsWith("https://pan.quark.cn/s/")){ - tabsq.push("夸克云盤"); + tabsq.push("夸克網盤"); }else if (burl.startsWith("magnet")){ tabsm = true; }else if (burl.startsWith("ed2k")){ @@ -111,14 +111,14 @@ log('dygang TABS >>>>>>>>>>>>>>>>>>' + TABS); log(TABS); pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; LISTS = []; -let d = pdfa(html, '#dede_content table tbody tr a'); +let d = pdfa(html, '#dede_content table tbody tr'); let lista = []; let listq = []; let listm = []; let liste = []; let listm3u8 = {}; d.forEach(function(it){ - let burl = pdfh(it, 'a&&href'); + let burl = pd(it, 'a&&href',HOST); let title = pdfh(it, 'a&&Text'); log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); @@ -153,51 +153,12 @@ d.forEach(function(it){ liste.push(loopresult); } }); -if (false){ -d = pdfa(html, 'div:has(>div#post_content) div.widget:has(>h3)'); -d.forEach(function(it){ - let index = pdfh(it, 'h3&&Text'); - let burl = pd(it, 'a&&href', HOST); - let title = pdfh(it, 'a&&Text'); - log('xb6v title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); - log('xb6v burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); - let m3u8_html = request(burl); - let playerUrl = pd(m3u8_html, 'div.video&&iframe&&src', HOST); - log('xb6v playerUrl >>>>>>>>>>>>>>>>>>>>>>>>>>' + playerUrl); - if (!listm3u8.hasOwnProperty(index)){ - listm3u8[index] = []; - } - let loopresult = title + '$' + ' '; - if (/(\/player\/|\/share\/)/.test(playerUrl)){ - let player_html = request(playerUrl); - let m3u8Url=""; - try{ - m3u8Url = player_html.match(/'([^']*.m3u8)'/)[1]; - }catch(e){ - try{ - m3u8Url = player_html.match(/"([^"]*.m3u8)"/)[1]; - }catch(e){ - m3u8Url = ""; - } - } - if (m3u8Url !== ""){ - m3u8Url = urljoin2(playerUrl, m3u8Url); - log('xb6v m3u8Url >>>>>>>>>>>>>>>>>>>>>>>>>>' + m3u8Url); - loopresult = title + '$' + m3u8Url; - } - } - listm3u8[index].push(loopresult); -}); -} if (listm.length>0){ LISTS.push(listm); } if (liste.length>0){ LISTS.push(liste); } -if (false && lista.length + listq.length > 1){ - LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]); -} lista.forEach(function(it){ LISTS.push([it]); }); diff --git a/js/funletu.js b/js/funletu.js index f304d891..1772133e 100644 --- a/js/funletu.js +++ b/js/funletu.js @@ -31,11 +31,11 @@ var rule = { 推荐:'', 一级:'', 二级:`js: -VOD.vod_play_from = "夸克雲盤"; +VOD.vod_play_from = "夸克網盤"; VOD.vod_remarks = detailUrl; VOD.vod_actor = "沒有二級,只有一級鏈接直接推送播放"; VOD.vod_content = MY_URL; -VOD.vod_play_url = "夸克雲盤$" + detailUrl; +VOD.vod_play_url = "夸克網盤$" + detailUrl; `, 搜索:`js: let postJson = { diff --git a/js/jiyingw.js b/js/jiyingw.js index 74c0b598..237f0150 100644 --- a/js/jiyingw.js +++ b/js/jiyingw.js @@ -51,9 +51,9 @@ let d = pdfa(html, '#post_content p a'); d.forEach(function(it) { let burl = pdfh(it, 'a&&href'); if (burl.startsWith("https://www.aliyundrive.com/s/")){ - tabsa.push("阿里云盤"); + tabsa.push("阿里雲盤"); }else if (burl.startsWith("https://pan.quark.cn/s/")){ - tabsq.push("夸克云盤"); + tabsq.push("夸克網盤"); }else if (burl.startsWith("magnet")){ tabsm = true; }else if (burl.startsWith("ed2k")){ @@ -64,9 +64,9 @@ d = pdfa(html, 'div#down p.down-list3 a'); d.forEach(function(it) { let burl = pdfh(it, 'a&&href'); if (burl.startsWith("https://www.aliyundrive.com/s/")){ - tabsa.push("阿里云盤"); + tabsa.push("阿里雲盤"); }else if (burl.startsWith("https://pan.quark.cn/s/")){ - tabsq.push("夸克云盤"); + tabsq.push("夸克網盤"); }else if (burl.startsWith("magnet")){ tabsm = true; }else if (burl.startsWith("ed2k")){ diff --git a/js/jiyingwp.js b/js/jiyingwp.js index 8768e69d..71e2c7ba 100644 --- a/js/jiyingwp.js +++ b/js/jiyingwp.js @@ -51,9 +51,9 @@ let d = pdfa(html, '#post_content p a'); d.forEach(function(it) { let burl = pdfh(it, 'a&&href'); if (burl.startsWith("https://www.aliyundrive.com/s/")){ - tabsa.push("阿里云盤"); + tabsa.push("阿里雲盤"); }else if (burl.startsWith("https://pan.quark.cn/s/")){ - tabsq.push("夸克云盤"); + tabsq.push("夸克網盤"); }else if (burl.startsWith("magnet")){ tabsm = true; }else if (burl.startsWith("ed2k")){ @@ -64,9 +64,9 @@ d = pdfa(html, 'div#down p.down-list3 a'); d.forEach(function(it) { let burl = pdfh(it, 'a&&href'); if (burl.startsWith("https://www.aliyundrive.com/s/")){ - tabsa.push("阿里云盤"); + tabsa.push("阿里雲盤"); }else if (burl.startsWith("https://pan.quark.cn/s/")){ - tabsq.push("夸克云盤"); + tabsq.push("夸克網盤"); }else if (burl.startsWith("magnet")){ tabsm = true; }else if (burl.startsWith("ed2k")){ diff --git a/js/kkpans.js b/js/kkpans.js index 5f4bb28d..748f1990 100644 --- a/js/kkpans.js +++ b/js/kkpans.js @@ -63,7 +63,7 @@ if (false && d.length>1){ TABS.push("選擇右側綫路"); } d.forEach(function(it) { - TABS.push("夸克雲盤" + index); + TABS.push("夸克網盤" + index); index = index + 1; }); log('meijumi TABS >>>>>>>>>>>>>>>>>>' + TABS); diff --git a/js/libvio.js b/js/libvio.js index bb3eb203..12f86358 100644 --- a/js/libvio.js +++ b/js/libvio.js @@ -44,7 +44,7 @@ d.forEach(function(it) { if (!/(猜你|喜欢|剧情|热播)/.test(name)){ log("libvio tabs name>>>>>>>>>>>>>>>" + name); if (name.includes("夸克")){ - tabsq.push("夸克雲盤"); + tabsq.push("夸克網盤"); }else if (name.includes("阿里")){ tabsq.push("阿里雲盤"); }else{ diff --git a/js/meijumi.js b/js/meijumi.js index bb006267..fb3d4016 100644 --- a/js/meijumi.js +++ b/js/meijumi.js @@ -189,7 +189,7 @@ playGroups.forEach(function (it) { haveDelay = true; TABS.push("選擇右側綫路"); } - TABS.push("夸克雲盤" + groupIndex); + TABS.push("夸克網盤" + groupIndex); } groupIndex = groupIndex + 1; } diff --git a/js/meijumip.js b/js/meijumip.js index 944b5393..e1ec452e 100644 --- a/js/meijumip.js +++ b/js/meijumip.js @@ -189,7 +189,7 @@ playGroups.forEach(function (it) { haveDelay = true; TABS.push("選擇右側綫路"); } - TABS.push("夸克雲盤" + groupIndex); + TABS.push("夸克網盤" + groupIndex); } groupIndex = groupIndex + 1; } diff --git a/js/mp4us.js b/js/mp4us.js index 3a6efe33..f27c3345 100644 --- a/js/mp4us.js +++ b/js/mp4us.js @@ -45,9 +45,9 @@ let tabse = false; d.forEach(function(it) { let burl = pdfh(it, 'a&&href'); if (burl.startsWith("https://www.aliyundrive.com/s/")){ - tabsa.push("阿里云盤"); + tabsa.push("阿里雲盤"); }else if (burl.startsWith("https://pan.quark.cn/s/")){ - tabsq.push("夸克云盤"); + tabsq.push("夸克網盤"); }else if (burl.startsWith("magnet")){ tabsm = true; }else if (burl.startsWith("ed2k")){ diff --git a/js/rrdyw.js b/js/rrdyw.js new file mode 100644 index 00000000..f6b9e63d --- /dev/null +++ b/js/rrdyw.js @@ -0,0 +1,130 @@ +var rule = { + title: 'RRDY網', + host: 'https://www.rrdynb.com', + homeUrl: '/', + url: '/fyclass_fypage.html?', + filter_url: '{{fl.class}}', + filter: {}, + searchUrl: '/plus/search.php?q=**&pagesize=10&submit=', + searchable: 2, + quickSearch: 1, + filterable: 0, + headers: { + 'User-Agent': 'PC_UA', + 'Cookie': '' + }, + timeout: 5000, + class_name: '影视&電視劇&老電影&動漫', + class_url: 'movie/list_2&dianshiju/list_6&zongyi/list_10&dongman/list_13', + play_parse: true, + play_json: [{ + re: '*', + json: { + parse: 0, + jx: 0 + } + }], + lazy: '', + limit: 6, + 推荐: '', + 一级: 'li:has(img);img&&alt;img&&data-original;;a&&href', + 二级: { + title: "h1&&Text", + img: "img&&src", + desc: "", + content: "span&&Text", + tabs: `js: pdfh = jsp.pdfh; + pdfa = jsp.pdfa; + pd = jsp.pd; + TABS = [] + let d = pdfa(html, 'span a'); + let tabsa = []; + let tabsq = []; + let tabsm = false; + let tabse = false; + d.forEach(function(it) { + let burl = pdfh(it, 'a&&href'); + if (burl.startsWith("https://www.aliyundrive.com/s/")) { + tabsa.push("阿里雲盤"); + } else if (burl.startsWith("https://pan.quark.cn/s/")) { + tabsq.push("夸克網盤"); + } else if (burl.startsWith("magnet")) { + tabsm = true; + } else if (burl.startsWith("ed2k")) { + tabse = true; + } + }); + if (tabsm === true) { + TABS.push("磁力"); + } + if (tabse === true) { + TABS.push("電驢"); + } + let tmpIndex; + tmpIndex = 1; + tabsa.forEach(function(it) { + TABS.push(it + tmpIndex); + tmpIndex = tmpIndex + 1; + }); + tmpIndex = 1; + tabsq.forEach(function(it) { + TABS.push(it + tmpIndex); + tmpIndex = tmpIndex + 1; + }); + log('alyps TABS >>>>>>>>>>>>>>>>>>' + TABS);`, + lists: `js: log(TABS); + pdfh = jsp.pdfh; + pdfa = jsp.pdfa; + pd = jsp.pd; + LISTS = []; + let d = pdfa(html, 'span a'); + let lista = []; + let listq = []; + let listm = []; + let liste = []; + d.forEach(function(it) { + let burl = pdfh(it, 'a&&href'); + let title = pdfh(it, 'a&&Text'); + log('alyps title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); + log('alyps burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); + let loopresult = title + '$' + burl; + if (burl.startsWith("https://www.aliyundrive.com/s/")) { + if (TABS.length == 1) { + burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl); + } else { + burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl); + } + loopresult = title + '$' + burl; + lista.push(loopresult); + } else if (burl.startsWith("https://pan.quark.cn/s/")) { + if (TABS.length == 1) { + burl = burl.replace("?entry=sjss", ""), + burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl); + } else { + burl = burl.replace("?entry=sjss", ""), + burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl); + } + loopresult = title + '$' + burl; + listq.push(loopresult); + } else if (burl.startsWith("magnet")) { + listm.push(loopresult); + } else if (burl.startsWith("ed2k")) { + liste.push(loopresult); + } + }); + if (listm.length > 0) { + LISTS.push(listm.reverse()); + } + if (liste.length > 0) { + LISTS.push(liste.reverse()); + } + lista.forEach(function(it) { + LISTS.push([it]); + }); + listq.forEach(function(it) { + LISTS.push([it]); + });`, + + }, + 搜索: 'li:has(img);h2&&Text;img&&data-original;.tags&&Text;a&&href', +} diff --git a/js/tzfile.js b/js/tzfile.js index 2f099b14..8686bee3 100644 --- a/js/tzfile.js +++ b/js/tzfile.js @@ -6,7 +6,7 @@ var rule = { filter_url:'{{fl.class}}', filter:{ }, - searchUrl: '/?s=**', + searchUrl: '/?s=**&type=post', searchable:2, quickSearch:0, filterable:0, @@ -29,7 +29,6 @@ var rule = { }], lazy:'', limit:6, -// 推荐:'main#main article:has(img);a&&title;img&&data-src;div.entry-wrapper a&&Text;a&&href', 推荐:'*', 一级:`js: pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; @@ -37,35 +36,31 @@ let d = []; log("tzfiles input>>>>>>>>>>>>>>"+input); let html = request(input); //log("tzfiles 1level html>>>>>>>>>>>>>>"+html); -let list = pdfa(html, 'main#main article:has(img)'); +let list = pdfa(html, '#primary-home ul li:has(img)'); list.forEach(function(it) { d.push({ - title: pdfh(it, 'a&&title'), - desc: pdfh(it, 'div.entry-wrapper a&&Text'), - pic_url: 'http://127.0.0.1:10079/i/0/s/'+pd(it, 'img&&data-src', HOST), + 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'), + pic_url: 'http://127.0.0.1:10079/i/0/s/'+pd(it, 'img&&src', HOST), url: pd(it, 'a&&href', HOST) }); }) setResult(d); `, - //一级:`js: - //let html=request(input); - //log("html>>>>>>>>>>>>>>>>"+html); - //`, 二级:{ - title:"#app .container header h1&&Text", - img:"#main article div.entry-content img&&src", - desc:"#app .container header .meta-date time&&datetime", - content:"#main article .entry-content&&Text", + title:"#primary-home h1&&Text", + img:"#primary-home article div.entry-content img&&src", + desc:"#primary-home .post-meta li.single-date&&Text", + content:"#primary-home article .entry-content&&Text", tabs:`js: pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; TABS=[]; -let d = pdfa(html, '#main article div.entry-content p'); +let d = pdfa(html, '#primary-home article div.entry-content p'); let tabsq=[]; d.forEach(function(it) { let purl = pd(it, 'a&&href', HOST); if (purl.includes("pan.quark.cn")){ - tabsq.push("夸克雲盤"); + tabsq.push("夸克網盤"); } else if (purl.includes("www.aliyundrive.com")){ tabsq.push("阿里雲盤"); } @@ -85,7 +80,7 @@ log('tzfile TABS >>>>>>>>>>>>>>>>>>' + TABS); log(TABS); LISTS=[]; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; -let d = pdfa(html, '#main article div.entry-content p'); +let d = pdfa(html, '#primary-home article div.entry-content p'); d.forEach(function(it) { let purl = pd(it, 'a&&href', HOST); if (/(pan.quark.cn|www.aliyundrive.com)/.test(purl)){ @@ -105,5 +100,5 @@ d.forEach(function(it) { `, }, - 搜索:'main#main div.container article:has(img);a&&title;img&&data-src;div.entry-wrapper a&&Text;a&&href', + 搜索:'#primary-home ul li:has(img);img&&alt;img&&src;div.post-info div.list-fotter time.b2timeago&&Text;a&&href', } diff --git a/js/xb6v.js b/js/xb6v.js index d0d64382..9301b4c0 100644 --- a/js/xb6v.js +++ b/js/xb6v.js @@ -27,7 +27,6 @@ var rule = { }], lazy:'', limit:6, - 推荐:'', 推荐:`js: pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; let d = []; @@ -95,9 +94,9 @@ let tabm3u8 = []; d.forEach(function(it) { let burl = pdfh(it, 'a&&href'); if (burl.startsWith("https://www.aliyundrive.com/s/")){ - tabsa.push("阿里云盤"); + tabsa.push("阿里雲盤"); }else if (burl.startsWith("https://pan.quark.cn/s/")){ - tabsq.push("夸克云盤"); + tabsq.push("夸克網盤"); }else if (burl.startsWith("magnet")){ tabsm = true; }else if (burl.startsWith("ed2k")){ @@ -181,42 +180,6 @@ d.forEach(function(it){ liste.push(loopresult); } }); -if (false){ -d = pdfa(html, 'div:has(>div#post_content) div.widget:has(>h3)'); -d.forEach(function(it){ - let index = pdfh(it, 'h3&&Text'); - let burl = pd(it, 'a&&href', HOST); - let title = pdfh(it, 'a&&Text'); - log('xb6v title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); - log('xb6v burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); - let m3u8_html = request(burl); - let playerUrl = pd(m3u8_html, 'div.video&&iframe&&src', HOST); - log('xb6v playerUrl >>>>>>>>>>>>>>>>>>>>>>>>>>' + playerUrl); - if (!listm3u8.hasOwnProperty(index)){ - listm3u8[index] = []; - } - let loopresult = title + '$' + ' '; - if (/(\\/player\\/|\\/share\\/)/.test(playerUrl)){ - let player_html = request(playerUrl); - let m3u8Url=""; - try{ - m3u8Url = player_html.match(/'([^']*.m3u8)'/)[1]; - }catch(e){ - try{ - m3u8Url = player_html.match(/"([^"]*.m3u8)"/)[1]; - }catch(e){ - m3u8Url = ""; - } - } - if (m3u8Url !== ""){ - m3u8Url = urljoin2(playerUrl, m3u8Url); - log('xb6v m3u8Url >>>>>>>>>>>>>>>>>>>>>>>>>>' + m3u8Url); - loopresult = title + '$' + m3u8Url; - } - } - listm3u8[index].push(loopresult); -}); -} if (listm.length>0){ LISTS.push(listm); } diff --git a/js/xzys.js b/js/xzys.js index cba0d784..ac0dd311 100644 --- a/js/xzys.js +++ b/js/xzys.js @@ -45,9 +45,9 @@ let tabse = false; d.forEach(function(it) { let burl = pdfh(it, 'a&&href'); if (burl.startsWith("https://www.aliyundrive.com/s/")){ - tabsa.push("阿里云盤"); + tabsa.push("阿里雲盤"); }else if (burl.startsWith("https://pan.quark.cn/s/")){ - tabsq.push("夸克云盤"); + tabsq.push("夸克網盤"); }else if (burl.startsWith("magnet")){ tabsm = true; }else if (burl.startsWith("ed2k")){