forked from jadehh/TVSpider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathliangzi.js
93 lines (73 loc) · 1.64 KB
/
liangzi.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
92
93
/*
* @File : liangzi.js
* @Author : jade
* @Date : 2024/1/24 9:15
* @Email : [email protected]
* @Software : Samples
* @Desc : 量子资源(已失效)
*/
import {VodSpider} from "./vodSpider.js";
class LiangziSpider extends VodSpider {
constructor() {
super();
this.siteUrl = "https://cj.lzcaiji.com"
this.remove18 = true
}
getAppName() {
return "量子资源"
}
getName() {
return `🐝┃量子资源┃🐝`
}
getJSName() {
return "liangzi"
}
getType() {
return 3
}
async spiderInit(inReq) {
await super.spiderInit(inReq);
}
async init(cfg) {
await super.init(cfg);
await this.spiderInit(null)
}
}
let spider = new LiangziSpider()
async function init(cfg) {
await spider.init(cfg)
}
async function home(filter) {
return await spider.home(filter)
}
async function homeVod() {
return await spider.homeVod()
}
async function category(tid, pg, filter, extend) {
return await spider.category(tid, pg, filter, extend)
}
async function detail(id) {
return await spider.detail(id)
}
async function play(flag, id, flags) {
return await spider.play(flag, id, flags)
}
async function search(wd, quick) {
return await spider.search(wd, quick)
}
async function proxy(segments, headers) {
return await spider.proxy(segments, headers)
}
export function __jsEvalReturn() {
return {
init: init,
home: home,
homeVod: homeVod,
category: category,
detail: detail,
play: play,
search: search,
proxy: proxy
};
}
export {spider}