koishi-plugin-video-parser-all 1.1.7 → 1.1.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/package.json +2 -2
- package/lib/index.d.ts +0 -122
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-video-parser-all",
|
|
3
3
|
"description": "Koishi 全平台视频解析插件,支持抖音/快手/B站/微博/小红书/剪映/YouTube/TikTok等20+平台",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.9",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -76,4 +76,4 @@
|
|
|
76
76
|
"engines": {
|
|
77
77
|
"node": ">=16.0.0"
|
|
78
78
|
}
|
|
79
|
-
}
|
|
79
|
+
}
|
package/lib/index.d.ts
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { Context, Schema } from 'koishi';
|
|
2
|
-
export declare const name = "video-parser-all";
|
|
3
|
-
export declare const Config: Schema<{
|
|
4
|
-
enable?: boolean | null | undefined;
|
|
5
|
-
botName?: string | null | undefined;
|
|
6
|
-
showWaitingTip?: boolean | null | undefined;
|
|
7
|
-
debug?: boolean | null | undefined;
|
|
8
|
-
} & import("cosmokit").Dict & {
|
|
9
|
-
unifiedMessageFormat?: string | null | undefined;
|
|
10
|
-
} & {
|
|
11
|
-
showImageText?: boolean | null | undefined;
|
|
12
|
-
showVideoFile?: boolean | null | undefined;
|
|
13
|
-
maxDescLength?: number | null | undefined;
|
|
14
|
-
videoDownloadTimeout?: number | null | undefined;
|
|
15
|
-
tempDir?: string | null | undefined;
|
|
16
|
-
maxVideoSize?: number | null | undefined;
|
|
17
|
-
forceDownloadVideo?: boolean | null | undefined;
|
|
18
|
-
} & {
|
|
19
|
-
timeout?: number | null | undefined;
|
|
20
|
-
videoSendTimeout?: number | null | undefined;
|
|
21
|
-
userAgent?: string | null | undefined;
|
|
22
|
-
} & {
|
|
23
|
-
ignoreSendError?: boolean | null | undefined;
|
|
24
|
-
retryTimes?: number | null | undefined;
|
|
25
|
-
retryInterval?: number | null | undefined;
|
|
26
|
-
} & {
|
|
27
|
-
enableForward?: boolean | null | undefined;
|
|
28
|
-
} & {
|
|
29
|
-
deduplicationInterval?: number | null | undefined;
|
|
30
|
-
} & {
|
|
31
|
-
primaryApiUrl?: string | null | undefined;
|
|
32
|
-
backupApiUrl?: string | null | undefined;
|
|
33
|
-
platformDedicatedFirst?: ({
|
|
34
|
-
bilibili?: boolean | null | undefined;
|
|
35
|
-
douyin?: boolean | null | undefined;
|
|
36
|
-
kuaishou?: boolean | null | undefined;
|
|
37
|
-
xiaohongshu?: boolean | null | undefined;
|
|
38
|
-
weibo?: boolean | null | undefined;
|
|
39
|
-
xigua?: boolean | null | undefined;
|
|
40
|
-
youtube?: boolean | null | undefined;
|
|
41
|
-
tiktok?: boolean | null | undefined;
|
|
42
|
-
acfun?: boolean | null | undefined;
|
|
43
|
-
zhihu?: boolean | null | undefined;
|
|
44
|
-
weishi?: boolean | null | undefined;
|
|
45
|
-
huya?: boolean | null | undefined;
|
|
46
|
-
haokan?: boolean | null | undefined;
|
|
47
|
-
meipai?: boolean | null | undefined;
|
|
48
|
-
twitter?: boolean | null | undefined;
|
|
49
|
-
instagram?: boolean | null | undefined;
|
|
50
|
-
doubao?: boolean | null | undefined;
|
|
51
|
-
} & import("cosmokit").Dict) | null | undefined;
|
|
52
|
-
customApis?: ({
|
|
53
|
-
platform?: "bilibili" | "douyin" | "kuaishou" | "xiaohongshu" | "weibo" | "xigua" | "youtube" | "tiktok" | "acfun" | "zhihu" | "weishi" | "huya" | "haokan" | "meipai" | "twitter" | "instagram" | "doubao" | null | undefined;
|
|
54
|
-
apiUrl?: string | null | undefined;
|
|
55
|
-
} & import("cosmokit").Dict)[] | null | undefined;
|
|
56
|
-
} & {
|
|
57
|
-
waitingTipText?: string | null | undefined;
|
|
58
|
-
unsupportedPlatformText?: string | null | undefined;
|
|
59
|
-
invalidLinkText?: string | null | undefined;
|
|
60
|
-
parseErrorPrefix?: string | null | undefined;
|
|
61
|
-
parseErrorItemFormat?: string | null | undefined;
|
|
62
|
-
}, {
|
|
63
|
-
enable: boolean;
|
|
64
|
-
botName: string;
|
|
65
|
-
showWaitingTip: boolean;
|
|
66
|
-
debug: boolean;
|
|
67
|
-
} & import("cosmokit").Dict & {
|
|
68
|
-
unifiedMessageFormat: string;
|
|
69
|
-
} & {
|
|
70
|
-
showImageText: boolean;
|
|
71
|
-
showVideoFile: boolean;
|
|
72
|
-
maxDescLength: number;
|
|
73
|
-
videoDownloadTimeout: number;
|
|
74
|
-
tempDir: string;
|
|
75
|
-
maxVideoSize: number;
|
|
76
|
-
forceDownloadVideo: boolean;
|
|
77
|
-
} & {
|
|
78
|
-
timeout: number;
|
|
79
|
-
videoSendTimeout: number;
|
|
80
|
-
userAgent: string;
|
|
81
|
-
} & {
|
|
82
|
-
ignoreSendError: boolean;
|
|
83
|
-
retryTimes: number;
|
|
84
|
-
retryInterval: number;
|
|
85
|
-
} & {
|
|
86
|
-
enableForward: boolean;
|
|
87
|
-
} & {
|
|
88
|
-
deduplicationInterval: number;
|
|
89
|
-
} & {
|
|
90
|
-
primaryApiUrl: string;
|
|
91
|
-
backupApiUrl: string;
|
|
92
|
-
platformDedicatedFirst: Schemastery.ObjectT<{
|
|
93
|
-
bilibili: Schema<boolean, boolean>;
|
|
94
|
-
douyin: Schema<boolean, boolean>;
|
|
95
|
-
kuaishou: Schema<boolean, boolean>;
|
|
96
|
-
xiaohongshu: Schema<boolean, boolean>;
|
|
97
|
-
weibo: Schema<boolean, boolean>;
|
|
98
|
-
xigua: Schema<boolean, boolean>;
|
|
99
|
-
youtube: Schema<boolean, boolean>;
|
|
100
|
-
tiktok: Schema<boolean, boolean>;
|
|
101
|
-
acfun: Schema<boolean, boolean>;
|
|
102
|
-
zhihu: Schema<boolean, boolean>;
|
|
103
|
-
weishi: Schema<boolean, boolean>;
|
|
104
|
-
huya: Schema<boolean, boolean>;
|
|
105
|
-
haokan: Schema<boolean, boolean>;
|
|
106
|
-
meipai: Schema<boolean, boolean>;
|
|
107
|
-
twitter: Schema<boolean, boolean>;
|
|
108
|
-
instagram: Schema<boolean, boolean>;
|
|
109
|
-
doubao: Schema<boolean, boolean>;
|
|
110
|
-
}>;
|
|
111
|
-
customApis: Schemastery.ObjectT<{
|
|
112
|
-
platform: Schema<"bilibili" | "douyin" | "kuaishou" | "xiaohongshu" | "weibo" | "xigua" | "youtube" | "tiktok" | "acfun" | "zhihu" | "weishi" | "huya" | "haokan" | "meipai" | "twitter" | "instagram" | "doubao", "bilibili" | "douyin" | "kuaishou" | "xiaohongshu" | "weibo" | "xigua" | "youtube" | "tiktok" | "acfun" | "zhihu" | "weishi" | "huya" | "haokan" | "meipai" | "twitter" | "instagram" | "doubao">;
|
|
113
|
-
apiUrl: Schema<string, string>;
|
|
114
|
-
}>[];
|
|
115
|
-
} & {
|
|
116
|
-
waitingTipText: string;
|
|
117
|
-
unsupportedPlatformText: string;
|
|
118
|
-
invalidLinkText: string;
|
|
119
|
-
parseErrorPrefix: string;
|
|
120
|
-
parseErrorItemFormat: string;
|
|
121
|
-
}>;
|
|
122
|
-
export declare function apply(ctx: Context, config: any): void;
|