forked from qist/tvbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
funletu.js
86 lines (86 loc) · 2.12 KB
/
funletu.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
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);
`,
}