From 6fd8945ac413dc918caed464119455951613b785 Mon Sep 17 00:00:00 2001 From: zjp <545349707@qq.com> Date: Tue, 8 Apr 2025 14:28:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6:=20funletu?= =?UTF-8?q?.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- funletu.js | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 funletu.js diff --git a/funletu.js b/funletu.js new file mode 100644 index 0000000..1772133 --- /dev/null +++ b/funletu.js @@ -0,0 +1,86 @@ +var rule = { + title:'趣盘搜[夸]', + host:'https://v.funletu.com', + homeUrl:'/', + url: '/forum-fyclass-fypage.html?', + filter_url:'{{fl.class}}', + filter:{ + }, + searchUrl: 'json:/search#{"style":"get","datasrc":"search","query":{"id":"","datetime":"","commonid":1,"parmid":"","fileid":"","reportid":"","validid":"","searchtext":"**"},"page":{"pageSize":10,"pageIndex":1},"order":{"prop":"id","order":"desc"},"message":"请求资源列表数据"};postjson', + searchable:2, + quickSearch:0, + filterable:0, + headers:{ + 'User-Agent': PC_UA, + 'Accept': '*/*', + 'Referer': 'https://pan.funletu.com/' + }, + timeout:5000, + class_name:'', + class_url:'', + play_parse:true, + play_json:[{ + re:'*', + json:{ + parse:0, + jx:0 + } + }], + lazy:'', + limit:6, + 推荐:'', + 一级:'', + 二级:`js: +VOD.vod_play_from = "夸克網盤"; +VOD.vod_remarks = detailUrl; +VOD.vod_actor = "沒有二級,只有一級鏈接直接推送播放"; +VOD.vod_content = MY_URL; +VOD.vod_play_url = "夸克網盤$" + detailUrl; +`, + 搜索:`js: +let postJson = { + style:"get", + datasrc:"search", + query:{ + id:"", + datetime:"", + commonid:1, + parmid:"", + fileid:"", + reportid:"", + validid:"", + searchtext: KEY + }, + page:{ pageSize:20, pageIndex: MY_PAGE }, + order:{prop:"id",order:"desc"}, + message:"请求资源列表数据" +}; +let postData = { + method: "POST", + body: postJson +}; +log("funletu search postData1>>>>>>>>>>>>>>>" + JSON.stringify(postData)); +let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params)); +Object.assign(_fetch_params, postData); +log("funletu search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params)); +let new_html=post(rule.homeUrl + 'search', _fetch_params); +//log("funletu search result>>>>>>>>>>>>>>>" + new_html); +let json=JSON.parse(new_html); +let d=[] +for(const it in json["data"]){ + if (json.data.hasOwnProperty(it)){ + log("funletu search it>>>>>>>>>>>>>>>" + JSON.stringify(json.data[it])); + if (json.data[it].valid === 0){ + d.push({ + title:json.data[it].title, + img:'', + content:json.data[it].updatetime, + desc:json.data[it].updatetime, + url:'push://'+json.data[it].url.split("?")[0] + }); + } + } +} +setResult(d); +`, +}