diff --git a/0825.json b/0825.json index b5acb8ac..2645ab75 100644 --- a/0825.json +++ b/0825.json @@ -1,5 +1,5 @@ { -"spider":"./jar/fm.jar;md5;1ddd0ee7401afec97dbbb86227e75825", +"spider":"./jar/fm.jar;md5;f594c7f47c6ecfe2dac30452f79fbe2f", "lives":[{"name":"初秋语•综合","type":0,"url":"./list.txt","playerType":1,"epg":"http://epg.112114.xyz/?ch={name}&date={date}","logo":"https://epg.112114.xyz/logo/{name}.png"}, {"name":"Ray•综合","type":0,"url":"https://xhdwc.tk/tvlive.txt","playerType":1,"epg":"http://epg.112114.xyz/?ch={name}&date={date}","logo":"https://epg.112114.xyz/logo/{name}.png"}, {"name":"俊于•综合","type":0,"url":"http://home.jundie.top:81/Cat/tv/live.txt","playerType":1,"epg":"http://epg.112114.xyz/?ch={name}&date={date}","logo": "https://epg.112114.xyz/logo/{name}.png"}], diff --git a/9918.json b/9918.json index c6aed26a..ea9d5682 100644 --- a/9918.json +++ b/9918.json @@ -1,5 +1,5 @@ { -"spider":"./jar/fm.nogo.jar;md5;2cb7b8a1f9bd28c2cc0ba1d70e7dc77d", +"spider":"./jar/fm.nogo.jar;md5;607ebc0f527612f24246343d52b789b4", "lives":[{"name":"初秋语","type":0,"url":"./listx.txt"}, {"name":"YanG","type":0,"url":"https://ghproxy.com/https://raw.githubusercontent.com/YanG-1989/m3u/main/Adult.m3u"}, {"name":"atsushi","type":0,"url":"https://ghproxy.com/https://raw.githubusercontent.com/atsushi444/iptv-epg/main/Adult.m3u"}, diff --git a/jar/fm.jar b/jar/fm.jar index 44315d70..67f29859 100644 Binary files a/jar/fm.jar and b/jar/fm.jar differ diff --git a/jar/fm.nogo.jar b/jar/fm.nogo.jar index 434ef6bd..96617db8 100644 Binary files a/jar/fm.nogo.jar and b/jar/fm.nogo.jar differ diff --git a/js/4khdr.js b/js/4khdr.js index a96427fc..4b808ae2 100644 --- a/js/4khdr.js +++ b/js/4khdr.js @@ -37,72 +37,91 @@ var rule = { tabs:`js: pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; TABS=[] -let d = pdfa(html, 'table.t_table'); -let aliIndex=1; +let d = pdfa(html, 'table.t_table a'); +let tabsa = []; +let tabsq = []; +let tabsm = false; +let tabse = false; d.forEach(function(it) { let burl = pdfh(it, 'a&&href'); - log("burl >>>>>>" + burl); if (burl.startsWith("https://www.aliyundrive.com/s/")){ - TABS.push("阿里雲盤"+aliIndex); - aliIndex = aliIndex + 1; + 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; } }); -let quarkIndex=1; -d.forEach(function(it) { - let burl = pdfh(it, 'a&&href'); - log("burl >>>>>>" + burl); - if (burl.startsWith("https://pan.quark.cn/s/")){ - TABS.push("夸克雲盤"+quarkIndex); - quarkIndex = quarkIndex + 1; - } -}); -d = pdfa(html, 'table.t_table a[href^="magnet"]'); -if (d.length>0){ +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('4khdr TABS >>>>>>>>>>>>>>>>>>' + TABS); `, lists:`js: log(TABS); pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; LISTS = []; -let d = pdfa(html, 'table.t_table'); -d.forEach(function(it){ - let burl = pdfh(it, 'a&&href'); - if (burl.startsWith("https://www.aliyundrive.com/s/")){ - let title = pdfh(it, 'a&&Text'); - log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); - burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl); - log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); - let loopresult = title + '$' + burl; - LISTS.push([loopresult]); - } -}); -d.forEach(function(it){ - let burl = pdfh(it, 'a&&href'); - if (burl.startsWith("https://pan.quark.cn/s/")){ - let title = pdfh(it, 'a&&Text'); - log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); - burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl); - log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); - let loopresult = title + '$' + burl; - LISTS.push([loopresult]); - } -}); +let d = pdfa(html, 'table.t_table a'); +let lista = []; +let listq = []; let listm = []; +let liste = []; d.forEach(function(it){ let burl = pdfh(it, 'a&&href'); - if (burl.startsWith("magnet")){ - let title = pdfh(it, 'a&&Text'); - log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); - log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); - let loopresult = title + '$' + burl; + let title = pdfh(it, 'a&&Text'); + log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); + log('dygang 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 = "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); + } + 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]); +}); `, }, diff --git a/js/cilixiong.js b/js/cilixiong.js index 0d73136b..139f62d1 100644 --- a/js/cilixiong.js +++ b/js/cilixiong.js @@ -33,8 +33,7 @@ var rule = { d.push({ title: pdfh(it, 'h2&&Text'), desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'), - pic_url: pd(it, '.card-img&&style'), - url: pd(it, 'a&&href') + pic_url: pd(it, '.card-img&&style') }); }) setResult(d); @@ -52,8 +51,7 @@ var rule = { d.push({ title: pdfh(it, 'h2&&Text'), desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'), - pic_url: pdfh(it, '.card-img&&style'), - url: '' + pic_url: pdfh(it, '.card-img&&style') }); }) setResult(d); diff --git a/js/dygang.js b/js/dygang.js index e05158fe..32bda9b1 100644 --- a/js/dygang.js +++ b/js/dygang.js @@ -39,21 +39,49 @@ var rule = { tabs:`js: pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; TABS=[] -var d = pdfa(html, '#dede_content table tbody tr a[href^="magnet"]'); -if (d.length>0){ +let d = pdfa(html, '#dede_content table tbody tr 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("磁力"); } -d = pdfa(html, '#dede_content table tbody tr a[href^="ed2k"]'); -if (d.length>0){ +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('dygang TABS >>>>>>>>>>>>>>>>>>' + TABS); `, lists:`js: log(TABS); pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; LISTS = []; -var d = pdfa(html, '#dede_content table tbody tr'); +let d = pdfa(html, '#dede_content table tbody tr a'); +let lista = []; +let listq = []; let listm = []; let liste = []; d.forEach(function(it){ @@ -62,7 +90,23 @@ d.forEach(function(it){ log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); let loopresult = title + '$' + burl; - if (burl.startsWith("magnet")){ + 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 = "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); + } + loopresult = title + '$' + burl; + listq.push(loopresult); + }else if (burl.startsWith("magnet")){ listm.push(loopresult); }else if (burl.startsWith("ed2k")){ liste.push(loopresult); @@ -74,6 +118,12 @@ if (listm.length>0){ if (liste.length>0){ LISTS.push(liste); } +lista.forEach(function(it){ + LISTS.push([it]); +}); +listq.forEach(function(it){ + LISTS.push([it]); +}); `, }, diff --git a/js/jiyingw.js b/js/jiyingw.js index 6bd9c34f..5aae748b 100644 --- a/js/jiyingw.js +++ b/js/jiyingw.js @@ -41,72 +41,133 @@ var rule = { tabs:`js: pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; TABS=[] -let d = pdfa(html, '.movie-introduce p a[href^="magnet"]'); -if (d.length > 0){ - TABS.push("磁力"); -}else{ - d = pdfa(html, 'div#down p.down-list3 a[href^="magnet"]'); - if (d.length > 0){ - TABS.push("磁力"); +let tabsa = []; +let tabsq = []; +let tabsm = false; +let tabse = false; +let d = pdfa(html, '.movie-introduce p a'); +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; + } +}); +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("阿里云盤"); + }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("磁力"); } -d = pdfa(html, '.movie-introduce p a[href^="ed2k"]'); -if (d.length > 0){ +if (tabse === true){ TABS.push("電驢"); -}else{ - d = pdfa(html, 'div#down p.down-list3 a[href^="ed2k'); - if (d.length > 0){ - 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('jiyingw TABS >>>>>>>>>>>>>>>>>>' + TABS); `, lists:`js: log(TABS); pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; LISTS = []; +let lista = []; +let listq = []; let listm = []; let liste = []; let d = pdfa(html, '.movie-introduce p'); d.forEach(function(it){ - let burl = pdfh(it, 'a[href^="magnet"]&&href'); - let title = pdfh(it, 'a[href^="magnet"]&&Text'); - log('jiyingw title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); - log('jiyingw burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); + let burl = pdfh(it, 'a&&href'); + let title = pdfh(it, 'a&&Text'); + log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); + log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); let loopresult = title + '$' + burl; - listm.push(loopresult); - - burl = pdfh(it, 'a[href^="ed2k"]&&href'); - title = pdfh(it, 'a[href^="ed2k"]&&Text'); - log('jiyingw title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); - log('jiyingw burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); - loopresult = title + '$' + burl; - liste.push(loopresult); -}); -if (listm.length<=0){ - d = pdfa(html, 'div#down p.down-list3'); - d.forEach(function(it){ - let burl = pdfh(it, 'a[href^="magnet"]&&href'); - let title = pdfh(it, 'a[href^="magnet"]&&Text'); - log('jiyingw title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); - log('jiyingw 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 = "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); + } + loopresult = title + '$' + burl; + listq.push(loopresult); + }else if (burl.startsWith("magnet")){ listm.push(loopresult); - - burl = pdfh(it, 'a[href^="ed2k"]&&href'); - title = pdfh(it, 'a[href^="ed2k"]&&Text'); - log('jiyingw title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); - log('jiyingw burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); + }else if (burl.startsWith("ed2k")){ + liste.push(loopresult); + } +}); +d = pdfa(html, 'div#down p.down-list3 a'); +d.forEach(function(it){ + let burl = pdfh(it, 'a&&href'); + let title = pdfh(it, 'a&&Text'); + log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); + log('dygang 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 = "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); + } 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]); +}); `, }, diff --git a/js/mp4us.js b/js/mp4us.js index 890dfae4..0369ee2c 100644 --- a/js/mp4us.js +++ b/js/mp4us.js @@ -37,30 +37,74 @@ var rule = { tabs:`js: pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; TABS=[] -let d = pdfa(html, 'ul.down-list&&li a[href^="magnet"]'); -if (d.length > 0){ +let d = pdfa(html, 'ul.down-list&&li 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("磁力"); } -d = pdfa(html, 'ul.down-list&&li a[href^="ed2k"]'); -if (d.length > 0){ +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('mp4us TABS >>>>>>>>>>>>>>>>>>' + TABS); `, lists:`js: log(TABS); pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; LISTS = []; -let d = pdfa(html, 'ul.down-list&&li'); +let d = pdfa(html, 'ul.down-list&&li 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('mp4us title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); - log('mp4us burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); + log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title); + log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl); let loopresult = title + '$' + burl; - if (burl.startsWith("magnet")){ + 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 = "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); + } + loopresult = title + '$' + burl; + listq.push(loopresult); + }else if (burl.startsWith("magnet")){ listm.push(loopresult); }else if (burl.startsWith("ed2k")){ liste.push(loopresult); @@ -72,6 +116,12 @@ if (listm.length>0){ if (liste.length>0){ LISTS.push(liste.reverse()); } +lista.forEach(function(it){ + LISTS.push([it]); +}); +listq.forEach(function(it){ + LISTS.push([it]); +}); `, },