-
Notifications
You must be signed in to change notification settings - Fork 159
/
Copy path美颜怪[擦].js
91 lines (80 loc) · 2.03 KB
/
美颜怪[擦].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
87
88
89
90
91
class Rule {
类型 = "影视";
author = "LoyDgIk";
title = "美颜怪";
desc = "";
host = "http://81.70.181.238/";
homeUrl = "";
url = "http://81.70.181.238/%2Fhot_video%2fyclass";
searchable = 0;
quickSearch = 0;
headers = {
'User-Agent': 'okhttp/3.14.9',
};
timeout = 5000;
play_parse = true;
hikerClassListCol = 'pic_2_card';
class_name = "最新&发现";
class_url = "FgetList&FgetRandList";
getSign(pg) {
let txt = "limit=30&page=" + pg + "&key=f6113acb6573d8b98502335e06f0c857";
let sign = md5(txt).toUpperCase();
return sign;
}
async 预处理() {
}
async 推荐() {
}
async 一级(tid, pg, filter, extend) {
try {
let {
//MY_CATE,
input
} = this;
let d = [];
let json = JSON.parse((await post(input, {
body: `page=${pg}&limit=30&sign=${this.getSign(pg)}&device_id=ffffffff-ca78-c55b-ca78-c55b00000000&auth_code=NotLogin&pro_id=2`
})));
for (let it of json.data.list) {
d.push({
title: "",
pic_url: it.pic,
url: it.src
});
}
//log(d)
return setResult(d);
} catch (e) {
log(e);
}
}
async 搜索(wd, quick, pg) {
try {
// log(Object.keys(this));
return this.一级();
// let 一级 = rule.一级.bind(this);
// return await 一级();
} catch (e) {
log(e.toString())
}
}
async 二级(ids) {
let {
input
} = this;
let vod = {
vod_id: input,
vod_play_from: "播放",
vod_play_url: "播放$" + input,
};
return vod;
}
async lazy(flag, id, flags) {
return {
parse: 0,
url: id,
js: ''
}
}
}
rule = new Rule();