From aa1ddc9a9d89d677c17b5becd904e38262df4dd4 Mon Sep 17 00:00:00 2001 From: chuqiuyu <13069375076@163.com> Date: Wed, 23 Aug 2023 20:43:40 +0800 Subject: [PATCH] update PG --- 0825.json | 6 +- js/kkpans.js | 2 +- js/kuba.js | 188 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 192 insertions(+), 4 deletions(-) create mode 100644 js/kuba.js diff --git a/0825.json b/0825.json index 8c0b0d4e..553ee4a2 100644 --- a/0825.json +++ b/0825.json @@ -14,10 +14,8 @@ {"key":"drpy_js_ikanbot3","name":"爱姬","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":1,"ext":"./js/ikanbot3.js"}, {"key":"drpy_js_荐片","name":"荐片","type":3,"api":"./lib/drpy2.min.js","searchable":1,"quickSearch":1,"changeable":1,"ext":"./js/荐片.js"}, - {"key":"csp_wogg_cli","name":"玩偶jun","type":4,"api":"http://home.jundie.top:9520/spider/csp_Wogg","searchable":1,"quickSearch":1,"filterable":1,"ext":"http://127.0.0.1:9978/file/tvfan/token.txt"}, {"key":"荐片","name":"荐片jun","type":4,"api":"http://home.jundie.top:9520/spider/csp_JP","searchable":1,"quickSearch":1,"filterable":1}, -{"key":"push_agent","name":"推送lf","type":3,"searchable":0,"changeable":1,"quickSearch":0,"filterable":0,"api":"./lib/lf_pushagent_min.js"}, {"key":"lf_js_p2p","name":"磁力lf","type":3,"searchable":1,"changeable":1,"quickSearch":1,"filterable":1,"api":"./lib/lf_p2p2_min.js"}, {"key":"lf_js_ikanbot","name":"点播lf","type":3,"searchable":1,"changeable":1,"quickSearch":1,"filterable":1,"api":"./lib/lf_ikanbot_min.js"}, {"key":"lf_js_lf_live","name":"直播lf","type":3,"api":"./lib/lf_live_min.js","style":{ "type":"oval"},"searchable":1,"changeable":0,"quickSearch":1,"filterable":1,"ext":"./js/lf_live.txt"}, @@ -29,7 +27,9 @@ {"key":"drpy_js_磁力熊p","name":"磁力熊p*","type":3,"api":"./lib/drpy2.min.js","ext":"./js/cilixiongp.js","searchable":0,"quickSearch":0,"changeable":1}, {"key":"drpy_js_xb6v","name":"新版6v*","type":3,"api":"./lib/drpy2.min.js","ext":"./js/xb6v.js","playerType":"1", "searchable":1, "quickSearch":1, "changeable":1}, {"key":"drpy_js_美剧迷","name":"美剧迷*","type":3,"api":"./lib/drpy2.min.js","ext":"./js/meijumi.js", "quickSearch":1, "changeable":1,"timeout":60000}, -{"key":"drpy_js_kkpans","name":"kkpans","type":3,"api":"./lib/drpy2.min.js","ext":"./js/kkpans.js", "quickSearch":1, "changeable":1,"timeout":60000}, +{"key":"drpy_js_kkpans","name":"夸克","type":3,"api":"./lib/drpy2.min.js","ext":"./js/kkpans.js", "quickSearch":1, "changeable":1,"timeout":60000}, +{"key":"drpy_js_kuba","name":"酷吧","type":3,"api":"./lib/drpy2.min.js","ext":"./js/kuba.js", "quickSearch":1, "changeable":1,"timeout":60000}, +{"key":"push_agent","name":"推送ali","type":3,"api":"csp_Push","searchable":0,"quickSearch":0,"ext":"http://127.0.0.1:9978/file/tvfan/tokengo.txt"}, {"key": "push_quark","name": "推送quark","type": 3,"api": "csp_Quark","changeable":0,"ext": "http://127.0.0.1:9978/file/tvfan/quark.txt"}, {"key":"csp_DiDuan" ,"name":"低端","type":3,"api":"csp_Ddys","searchable":1,"quickSearch":1,"changeable":1,"ext":"$$$socks5://192.168.5.227:4592"}, diff --git a/js/kkpans.js b/js/kkpans.js index b7cd76f3..32ceca98 100644 --- a/js/kkpans.js +++ b/js/kkpans.js @@ -99,7 +99,7 @@ if (typeof setCk !== "undefined"){ fetch_params.headers.Cookie=cookie; rule_fetch_params.headers.Cookie=cookie; log('kkpans search cookie >>>>>>>>>>>>>>>>>>>>>' + cookie); -log('kkpans search body >>>>>>>>>>>>>>>>>>>>>' + json['body']); +//log('kkpans search body >>>>>>>>>>>>>>>>>>>>>' + json['body']); new_html = json['body']; diff --git a/js/kuba.js b/js/kuba.js new file mode 100644 index 00000000..5a875b43 --- /dev/null +++ b/js/kuba.js @@ -0,0 +1,188 @@ +var rule = { + title:'酷吧[磁]', + host:'https://www.kuba222.com', + homeUrl: '/', + url: '/vodtypehtml/fyclass.html?', + filter_url:'{{fl.class}}', + filter:{ + }, + searchUrl: '/search/**-1.html', + searchable:2, + quickSearch:0, + filterable:0, + headers:{ + 'User-Agent': 'PC_UA', + 'Referer': 'https://www.kuba222.com/' + }, + timeout:5000, + class_name: '最新&4K&电影&动作片&喜剧片&爱情片&科幻片&恐怖片&剧情片&战争片&微电影&电视剧&动漫&纪录片', + class_url: 'new&4K&1&5&6&7&8&9&10&11&21&31&4&16', + 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, 'ul.stui-vodlist li'); +list.forEach(function (it){ + d.push({ + title: pdfh(it, 'a&&title'), + desc: pdfh(it, 'li&&div&&a&&span&&Text'), + pic_url: pd(it, 'a&&data-original', HOST), + url: pdfh(it, 'a&&href') + }); +}); +setResult(d); +`, + 一级:`js: +pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; +let d = []; +if (MY_CATE === '4K'){ + let turl = (MY_PAGE === 1)? '' : '-' + MY_PAGE; + input = rule.homeUrl + 'vodtopichtml/' + '11' + turl + '.html'; +}else if (MY_CATE === 'new'){ + input = rule.homeUrl + MY_CATE + '.html'; +}else{ + let turl = (MY_PAGE === 1)? '' : '-' + MY_PAGE; + input = rule.homeUrl + 'vodtypehtml/' + MY_CATE + turl + '.html'; +} +let html = request(input); +let list = pdfa(html, 'ul.stui-vodlist li'); +list.forEach(function (it){ + d.push({ + title: pdfh(it, 'a&&title'), + desc: pdfh(it, 'li&&div&&a&&span&&Text'), + pic_url: pd(it, 'a&&data-original', HOST), + url: pdfh(it, 'a&&href') + }); +}); +setResult(d); +`, + 二级:{ + title:"div.stui-content h3&&Text", + img:"div.stui-content a.lazyload img&&src", + desc:'div.stui-content a span&&Text', + content:'div.stui-content p.data&&Text', + tabs:`js: +pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; +TABS=[] +let vodUrls=[]; +try{ + vodUrls.push(html.match(/var GvodUrls1 *= *"([^"]*)"/)[1]); + vodUrls.push(html.match(/var GvodUrls2 *= *"([^"]*)"/)[1]); + vodUrls.push(html.match(/var GvodUrls3 *= *"([^"]*)"/)[1]); + vodUrls.push(html.match(/var GvodUrls4 *= *"([^"]*)"/)[1]); + vodUrls.push(html.match(/var GvodUrls5 *= *"([^"]*)"/)[1]); +}catch(e){ +} +let index=1; +vodUrls.forEach(function (it) { + TABS.push("磁力"+index); + index = index + 1; +}); +log('kuba TABS >>>>>>>>>>>>>>>>>>' + TABS); +`, + lists:`js: +log(TABS); +pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; +LISTS = []; +let vodUrls=[]; +//log("kuba html>>>>>>>>>>>>>>>>>>>>>>" + html); +try{ + vodUrls.push(html.match(/var GvodUrls1 *= *"([^"]*)"/)[1]); + vodUrls.push(html.match(/var GvodUrls2 *= *"([^"]*)"/)[1]); + vodUrls.push(html.match(/var GvodUrls3 *= *"([^"]*)"/)[1]); + vodUrls.push(html.match(/var GvodUrls4 *= *"([^"]*)"/)[1]); + vodUrls.push(html.match(/var GvodUrls5 *= *"([^"]*)"/)[1]); +}catch(e){ + log('kuba tabs e>>>>>>>>>>>>>>>>>>..' + e); +} +vodUrls.forEach(function (it) { + let epos = it.split("###"); + let d=[]; + epos.forEach(function (it1){ + if (it1.length>0){ + d.push(it1); + } + }); + LISTS.push(d.reverse()); +}); +`, + + }, + 搜索:`js: +pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; +let cookie=""; +if (false){ +let new_html=request(HOST, {withHeaders:true}); +let json=JSON.parse(new_html); +let setCk=Object.keys(json).find(it=>it.toLowerCase()==="set-cookie"); +if (typeof setCk !== "undefined"){ + let d=[]; + for(const key in json[setCk]){ + if (typeof json[setCk][key] === "string"){ + log("kuba header setCk key>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" + json[setCk][key] + " " + (typeof json[setCk][key])); + d.push(json[setCk][key].split(";")[0]); + } + } + cookie=d.join(";"); +} +fetch_params.headers.Cookie=cookie; +rule_fetch_params.headers.Cookie=cookie; +} +log('kuba search cookie >>>>>>>>>>>>>>>>>>>>>' + cookie); + +let params = 'wd='+ encodeURIComponent(KEY) + '&submit='; +let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params)); +let postData = { + body: params +}; +Object.assign(_fetch_params, postData); +log("kuba search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params)); +let search_html = post( HOST + '/index.php?m=vod-search', _fetch_params) +search_html = search_html.replace(/