koishi-plugin-video-parser-all 0.3.7 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +115 -53
- package/lib/index.js +821 -228
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,54 +1,116 @@
|
|
|
1
|
-
import { Schema,
|
|
1
|
+
import { Schema, Dict } from 'koishi';
|
|
2
2
|
export declare const name = "video-parser-all";
|
|
3
|
-
export declare const Config: Schema<
|
|
4
|
-
enable
|
|
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
|
-
timeout
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
3
|
+
export declare const Config: Schema<{
|
|
4
|
+
enable?: boolean | null | undefined;
|
|
5
|
+
botName?: string | null | undefined;
|
|
6
|
+
showWaitingTip?: boolean | null | undefined;
|
|
7
|
+
waitingTipText?: string | null | undefined;
|
|
8
|
+
sameLinkInterval?: number | null | undefined;
|
|
9
|
+
maxVideoSize?: number | null | undefined;
|
|
10
|
+
downloadThreads?: number | null | undefined;
|
|
11
|
+
} & Dict & {
|
|
12
|
+
platformEnable?: ({
|
|
13
|
+
bilibili?: boolean | null | undefined;
|
|
14
|
+
douyin?: boolean | null | undefined;
|
|
15
|
+
kuaishou?: boolean | null | undefined;
|
|
16
|
+
xigua?: boolean | null | undefined;
|
|
17
|
+
xiaohongshu?: boolean | null | undefined;
|
|
18
|
+
weibo?: boolean | null | undefined;
|
|
19
|
+
toutiao?: boolean | null | undefined;
|
|
20
|
+
pipigx?: boolean | null | undefined;
|
|
21
|
+
pipixia?: boolean | null | undefined;
|
|
22
|
+
zuiyou?: boolean | null | undefined;
|
|
23
|
+
} & Dict) | null | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
platformFormat?: ({
|
|
26
|
+
bilibili?: string | null | undefined;
|
|
27
|
+
douyin?: string | null | undefined;
|
|
28
|
+
kuaishou?: string | null | undefined;
|
|
29
|
+
xigua?: string | null | undefined;
|
|
30
|
+
xiaohongshu?: string | null | undefined;
|
|
31
|
+
weibo?: string | null | undefined;
|
|
32
|
+
toutiao?: string | null | undefined;
|
|
33
|
+
pipigx?: string | null | undefined;
|
|
34
|
+
pipixia?: string | null | undefined;
|
|
35
|
+
zuiyou?: string | null | undefined;
|
|
36
|
+
} & Dict) | null | undefined;
|
|
37
|
+
} & {
|
|
38
|
+
showImageText?: boolean | null | undefined;
|
|
39
|
+
showVideoUrl?: boolean | null | undefined;
|
|
40
|
+
showVideoFile?: boolean | null | undefined;
|
|
41
|
+
} & {
|
|
42
|
+
maxDescLength?: number | null | undefined;
|
|
43
|
+
} & {
|
|
44
|
+
timeout?: number | null | undefined;
|
|
45
|
+
videoSendTimeout?: number | null | undefined;
|
|
46
|
+
userAgent?: string | null | undefined;
|
|
47
|
+
bilibiliAccessKey?: string | null | undefined;
|
|
48
|
+
} & {
|
|
49
|
+
ignoreSendError?: boolean | null | undefined;
|
|
50
|
+
retryTimes?: number | null | undefined;
|
|
51
|
+
retryInterval?: number | null | undefined;
|
|
52
|
+
} & {
|
|
53
|
+
enableForward?: boolean | null | undefined;
|
|
54
|
+
downloadVideoBeforeSend?: boolean | null | undefined;
|
|
55
|
+
} & {
|
|
56
|
+
messageBufferDelay?: number | null | undefined;
|
|
57
|
+
} & {
|
|
58
|
+
autoClearCacheInterval?: number | null | undefined;
|
|
59
|
+
}, {
|
|
60
|
+
enable: boolean;
|
|
61
|
+
botName: string;
|
|
62
|
+
showWaitingTip: boolean;
|
|
63
|
+
waitingTipText: string;
|
|
64
|
+
sameLinkInterval: number;
|
|
65
|
+
maxVideoSize: number;
|
|
66
|
+
downloadThreads: number;
|
|
67
|
+
} & Dict & {
|
|
68
|
+
platformEnable: Schemastery.ObjectT<{
|
|
69
|
+
bilibili: Schema<boolean, boolean>;
|
|
70
|
+
douyin: Schema<boolean, boolean>;
|
|
71
|
+
kuaishou: Schema<boolean, boolean>;
|
|
72
|
+
xigua: Schema<boolean, boolean>;
|
|
73
|
+
xiaohongshu: Schema<boolean, boolean>;
|
|
74
|
+
weibo: Schema<boolean, boolean>;
|
|
75
|
+
toutiao: Schema<boolean, boolean>;
|
|
76
|
+
pipigx: Schema<boolean, boolean>;
|
|
77
|
+
pipixia: Schema<boolean, boolean>;
|
|
78
|
+
zuiyou: Schema<boolean, boolean>;
|
|
79
|
+
}>;
|
|
80
|
+
} & {
|
|
81
|
+
platformFormat: Schemastery.ObjectT<{
|
|
82
|
+
bilibili: Schema<string, string>;
|
|
83
|
+
douyin: Schema<string, string>;
|
|
84
|
+
kuaishou: Schema<string, string>;
|
|
85
|
+
xigua: Schema<string, string>;
|
|
86
|
+
xiaohongshu: Schema<string, string>;
|
|
87
|
+
weibo: Schema<string, string>;
|
|
88
|
+
toutiao: Schema<string, string>;
|
|
89
|
+
pipigx: Schema<string, string>;
|
|
90
|
+
pipixia: Schema<string, string>;
|
|
91
|
+
zuiyou: Schema<string, string>;
|
|
92
|
+
}>;
|
|
93
|
+
} & {
|
|
94
|
+
showImageText: boolean;
|
|
95
|
+
showVideoUrl: boolean;
|
|
96
|
+
showVideoFile: boolean;
|
|
97
|
+
} & {
|
|
98
|
+
maxDescLength: number;
|
|
99
|
+
} & {
|
|
100
|
+
timeout: number;
|
|
101
|
+
videoSendTimeout: number;
|
|
102
|
+
userAgent: string;
|
|
103
|
+
bilibiliAccessKey: string;
|
|
104
|
+
} & {
|
|
105
|
+
ignoreSendError: boolean;
|
|
106
|
+
retryTimes: number;
|
|
107
|
+
retryInterval: number;
|
|
108
|
+
} & {
|
|
109
|
+
enableForward: boolean;
|
|
110
|
+
downloadVideoBeforeSend: boolean;
|
|
111
|
+
} & {
|
|
112
|
+
messageBufferDelay: number;
|
|
113
|
+
} & {
|
|
114
|
+
autoClearCacheInterval: number;
|
|
115
|
+
}>;
|
|
116
|
+
export declare function apply(ctx: any, config: any): void;
|