bilitoolkit-ui 0.0.6 → 0.0.7
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/dist/bilitoolkit-ui.css +1 -1
- package/dist/index.d.ts +1136 -4
- package/dist/index.js +1887 -835
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -6,10 +6,17 @@ import { AppThemeState } from 'bilitoolkit-types';
|
|
|
6
6
|
import { ComponentCustomProps } from 'vue';
|
|
7
7
|
import { ComponentOptionsMixin } from 'vue';
|
|
8
8
|
import { ComponentProvideOptions } from 'vue';
|
|
9
|
+
import { ComputedRef } from 'vue';
|
|
9
10
|
import { DefaultRow } from 'element-plus/es/components/table/src/table/defaults.mjs';
|
|
10
11
|
import { DefineComponent } from 'vue';
|
|
12
|
+
import { DownloadResourceType } from 'bilitoolkit-types';
|
|
13
|
+
import { DownloadTask } from 'bilitoolkit-types';
|
|
14
|
+
import { DownloadTaskStatus } from 'bilitoolkit-types';
|
|
15
|
+
import { DownloadVideo } from 'bilitoolkit-types';
|
|
16
|
+
import { DownloadVideoPart } from 'bilitoolkit-types';
|
|
11
17
|
import { ElMessageBoxOptions } from 'element-plus';
|
|
12
18
|
import { MaybeRefOrGetter } from 'vue';
|
|
19
|
+
import { ModelRef } from 'vue';
|
|
13
20
|
import { Pinia } from 'pinia';
|
|
14
21
|
import { PublicProps } from 'vue';
|
|
15
22
|
import { Ref } from 'vue';
|
|
@@ -21,11 +28,31 @@ import { ToolkitApi } from 'bilitoolkit-types';
|
|
|
21
28
|
import { UnwrapRefSimple } from '@vue/reactivity';
|
|
22
29
|
import { UserInfo } from '@ybgnb/bili-api';
|
|
23
30
|
import { UserInfoWithCookie } from '@ybgnb/bili-api';
|
|
31
|
+
import { VideoCodecId } from '@ybgnb/bili-api';
|
|
32
|
+
import { VideoInfoSnapshot } from 'bilitoolkit-types';
|
|
33
|
+
import { VideoStat } from '@ybgnb/bili-api';
|
|
34
|
+
import { VideoZoneV2Id } from '@ybgnb/bili-api';
|
|
24
35
|
import { VNode } from 'vue';
|
|
25
36
|
import { VNodeProps } from 'vue';
|
|
26
37
|
|
|
27
38
|
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
28
39
|
|
|
40
|
+
declare const __VLS_component_10: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
41
|
+
action: (action: DownloadTaskAction, task: DownloadTask) => any;
|
|
42
|
+
}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
|
|
43
|
+
onAction?: ((action: DownloadTaskAction, task: DownloadTask) => any) | undefined;
|
|
44
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
45
|
+
|
|
46
|
+
declare const __VLS_component_11: DefineComponent<__VLS_Props_12, {
|
|
47
|
+
refresh: () => Promise<void>;
|
|
48
|
+
resetAndRefresh: () => Promise<void>;
|
|
49
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{}>, {
|
|
50
|
+
pageSizes: number[];
|
|
51
|
+
showDefaultActions: boolean;
|
|
52
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
53
|
+
refList: HTMLDivElement;
|
|
54
|
+
}, any>;
|
|
55
|
+
|
|
29
56
|
declare const __VLS_component_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
30
57
|
|
|
31
58
|
declare const __VLS_component_3: DefineComponent<TooltipProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TooltipProps> & Readonly<{}>, {
|
|
@@ -49,6 +76,14 @@ onHandleSelect?: ((menu: PluginMenuData) => any) | undefined;
|
|
|
49
76
|
|
|
50
77
|
declare const __VLS_component_8: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
51
78
|
|
|
79
|
+
declare const __VLS_component_9: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
80
|
+
"update:modelValue": (value: boolean) => any;
|
|
81
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
|
|
82
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
83
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
84
|
+
refVideoList: HTMLDivElement;
|
|
85
|
+
}, HTMLDivElement>;
|
|
86
|
+
|
|
52
87
|
declare type __VLS_PrettifyLocal<T> = {
|
|
53
88
|
[K in keyof T]: T[K];
|
|
54
89
|
} & {};
|
|
@@ -61,12 +96,62 @@ declare type __VLS_Props = {
|
|
|
61
96
|
name: string;
|
|
62
97
|
};
|
|
63
98
|
|
|
99
|
+
declare type __VLS_Props_10 = {
|
|
100
|
+
task?: DownloadTask;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
declare type __VLS_Props_11 = {
|
|
104
|
+
task: DownloadTask;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
declare type __VLS_Props_12 = {
|
|
108
|
+
showDefaultActions?: boolean;
|
|
109
|
+
pageSizes?: number[];
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
declare type __VLS_Props_13 = {
|
|
113
|
+
task: DownloadTask;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
declare type __VLS_Props_14 = {
|
|
117
|
+
task: DownloadTask;
|
|
118
|
+
resourceCount: number;
|
|
119
|
+
isCompact?: boolean;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
declare type __VLS_Props_15 = {
|
|
123
|
+
type: DownloadResourceType;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
declare type __VLS_Props_16 = {
|
|
127
|
+
task: DownloadTask;
|
|
128
|
+
videoCount: number;
|
|
129
|
+
resourceCount: number;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
declare type __VLS_Props_17 = {
|
|
133
|
+
task: DownloadTask;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
declare type __VLS_Props_18 = {
|
|
137
|
+
video: DownloadVideo;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
declare type __VLS_Props_19 = {
|
|
141
|
+
part: DownloadVideoPart;
|
|
142
|
+
};
|
|
143
|
+
|
|
64
144
|
declare type __VLS_Props_2 = {
|
|
65
145
|
title: string;
|
|
66
146
|
desc?: string;
|
|
67
147
|
iconClass?: string;
|
|
68
148
|
};
|
|
69
149
|
|
|
150
|
+
declare type __VLS_Props_20 = {
|
|
151
|
+
stat: Omit<VideoStat, 'dislike'>;
|
|
152
|
+
fields?: AvailableStat[];
|
|
153
|
+
};
|
|
154
|
+
|
|
70
155
|
declare type __VLS_Props_3 = CountdownDialogProps;
|
|
71
156
|
|
|
72
157
|
declare type __VLS_Props_4 = PageRangeDialogProps;
|
|
@@ -91,6 +176,14 @@ declare type __VLS_Props_8 = {
|
|
|
91
176
|
user: Pick<UserInfoWithCookie, 'mid' | 'face' | 'name'>;
|
|
92
177
|
};
|
|
93
178
|
|
|
179
|
+
declare type __VLS_Props_9 = {
|
|
180
|
+
visible: boolean;
|
|
181
|
+
title?: string;
|
|
182
|
+
message: string;
|
|
183
|
+
confirmButtonText?: string;
|
|
184
|
+
cancelButtonText?: string;
|
|
185
|
+
};
|
|
186
|
+
|
|
94
187
|
declare type __VLS_PublicProps = {
|
|
95
188
|
modelValue: boolean;
|
|
96
189
|
} & __VLS_Props_3;
|
|
@@ -99,6 +192,10 @@ declare type __VLS_PublicProps_2 = {
|
|
|
99
192
|
modelValue: boolean;
|
|
100
193
|
} & __VLS_Props_4;
|
|
101
194
|
|
|
195
|
+
declare type __VLS_PublicProps_3 = {
|
|
196
|
+
modelValue: typeof visible['value'];
|
|
197
|
+
} & __VLS_Props_10;
|
|
198
|
+
|
|
102
199
|
declare function __VLS_template(): {
|
|
103
200
|
attrs: Partial<{}>;
|
|
104
201
|
slots: {
|
|
@@ -108,6 +205,912 @@ declare function __VLS_template(): {
|
|
|
108
205
|
rootEl: HTMLDivElement;
|
|
109
206
|
};
|
|
110
207
|
|
|
208
|
+
declare function __VLS_template_10(): {
|
|
209
|
+
attrs: Partial<{}>;
|
|
210
|
+
slots: {
|
|
211
|
+
titleExtra?(_: {
|
|
212
|
+
task: DownloadTask;
|
|
213
|
+
}): any;
|
|
214
|
+
};
|
|
215
|
+
refs: {};
|
|
216
|
+
rootEl: HTMLDivElement;
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
declare function __VLS_template_11(): {
|
|
220
|
+
attrs: Partial<{}>;
|
|
221
|
+
slots: {
|
|
222
|
+
queryList?(_: {}): any;
|
|
223
|
+
actions?(_: {}): any;
|
|
224
|
+
itemTitleExtra?(_: {
|
|
225
|
+
task: DownloadTask;
|
|
226
|
+
}): any;
|
|
227
|
+
detailsDialog?(_: {
|
|
228
|
+
task: {
|
|
229
|
+
id: number;
|
|
230
|
+
title: string;
|
|
231
|
+
videos: {
|
|
232
|
+
snapshot: {
|
|
233
|
+
bvid: string;
|
|
234
|
+
aid: number;
|
|
235
|
+
tid: number;
|
|
236
|
+
tid_v2: VideoZoneV2Id;
|
|
237
|
+
pic: string;
|
|
238
|
+
title: string;
|
|
239
|
+
pubdate: number;
|
|
240
|
+
desc: string;
|
|
241
|
+
duration: number;
|
|
242
|
+
owner: {
|
|
243
|
+
mid: number;
|
|
244
|
+
name: string;
|
|
245
|
+
face: string;
|
|
246
|
+
};
|
|
247
|
+
stat: {
|
|
248
|
+
view: number;
|
|
249
|
+
like: number;
|
|
250
|
+
coin: number;
|
|
251
|
+
favorite: number;
|
|
252
|
+
share: number;
|
|
253
|
+
reply: number;
|
|
254
|
+
aid: number;
|
|
255
|
+
danmaku: number;
|
|
256
|
+
now_rank: number;
|
|
257
|
+
his_rank: number;
|
|
258
|
+
evaluation: string;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
parts: {
|
|
262
|
+
snapshot: {
|
|
263
|
+
cid: number;
|
|
264
|
+
page: number;
|
|
265
|
+
part: string;
|
|
266
|
+
duration: number;
|
|
267
|
+
first_frame: string;
|
|
268
|
+
};
|
|
269
|
+
subdirectory?: string | undefined;
|
|
270
|
+
resources: ({
|
|
271
|
+
type: "audio";
|
|
272
|
+
fullFilename: string;
|
|
273
|
+
source: {
|
|
274
|
+
audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
|
|
275
|
+
audio: {
|
|
276
|
+
id: 30216 | 30280 | 30232 | 30250 | 30251;
|
|
277
|
+
baseUrl?: string | undefined;
|
|
278
|
+
base_url: string;
|
|
279
|
+
backupUrl?: string[] | undefined;
|
|
280
|
+
backup_url: string[];
|
|
281
|
+
bandwidth: number;
|
|
282
|
+
mimeType?: string | undefined;
|
|
283
|
+
mime_type: string;
|
|
284
|
+
codecs: string;
|
|
285
|
+
width?: number | undefined;
|
|
286
|
+
height?: number | undefined;
|
|
287
|
+
frameRate?: string | undefined;
|
|
288
|
+
frame_rate?: string | undefined;
|
|
289
|
+
sar: string;
|
|
290
|
+
startWithSap?: number | undefined;
|
|
291
|
+
start_with_sap?: number | undefined;
|
|
292
|
+
SegmentBase?: {
|
|
293
|
+
Initialization: string;
|
|
294
|
+
indexRange: string;
|
|
295
|
+
} | undefined;
|
|
296
|
+
segment_base?: {
|
|
297
|
+
initialization: string;
|
|
298
|
+
index_range: string;
|
|
299
|
+
} | undefined;
|
|
300
|
+
codecid: VideoCodecId | 0;
|
|
301
|
+
};
|
|
302
|
+
} | {
|
|
303
|
+
videoQuality: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
|
|
304
|
+
videoCodec: VideoCodecId;
|
|
305
|
+
video: {
|
|
306
|
+
id: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
|
|
307
|
+
baseUrl?: string | undefined;
|
|
308
|
+
base_url: string;
|
|
309
|
+
backupUrl?: string[] | undefined;
|
|
310
|
+
backup_url: string[];
|
|
311
|
+
bandwidth: number;
|
|
312
|
+
mimeType?: string | undefined;
|
|
313
|
+
mime_type: string;
|
|
314
|
+
codecs: string;
|
|
315
|
+
width?: number | undefined;
|
|
316
|
+
height?: number | undefined;
|
|
317
|
+
frameRate?: string | undefined;
|
|
318
|
+
frame_rate?: string | undefined;
|
|
319
|
+
sar: string;
|
|
320
|
+
startWithSap?: number | undefined;
|
|
321
|
+
start_with_sap?: number | undefined;
|
|
322
|
+
SegmentBase?: {
|
|
323
|
+
Initialization: string;
|
|
324
|
+
indexRange: string;
|
|
325
|
+
} | undefined;
|
|
326
|
+
segment_base?: {
|
|
327
|
+
initialization: string;
|
|
328
|
+
index_range: string;
|
|
329
|
+
} | undefined;
|
|
330
|
+
codecid: VideoCodecId | 0;
|
|
331
|
+
};
|
|
332
|
+
audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
|
|
333
|
+
audio: {
|
|
334
|
+
id: 30216 | 30280 | 30232 | 30250 | 30251;
|
|
335
|
+
baseUrl?: string | undefined;
|
|
336
|
+
base_url: string;
|
|
337
|
+
backupUrl?: string[] | undefined;
|
|
338
|
+
backup_url: string[];
|
|
339
|
+
bandwidth: number;
|
|
340
|
+
mimeType?: string | undefined;
|
|
341
|
+
mime_type: string;
|
|
342
|
+
codecs: string;
|
|
343
|
+
width?: number | undefined;
|
|
344
|
+
height?: number | undefined;
|
|
345
|
+
frameRate?: string | undefined;
|
|
346
|
+
frame_rate?: string | undefined;
|
|
347
|
+
sar: string;
|
|
348
|
+
startWithSap?: number | undefined;
|
|
349
|
+
start_with_sap?: number | undefined;
|
|
350
|
+
SegmentBase?: {
|
|
351
|
+
Initialization: string;
|
|
352
|
+
indexRange: string;
|
|
353
|
+
} | undefined;
|
|
354
|
+
segment_base?: {
|
|
355
|
+
initialization: string;
|
|
356
|
+
index_range: string;
|
|
357
|
+
} | undefined;
|
|
358
|
+
codecid: VideoCodecId | 0;
|
|
359
|
+
};
|
|
360
|
+
} | {
|
|
361
|
+
coverUrl: string;
|
|
362
|
+
audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
|
|
363
|
+
audio: {
|
|
364
|
+
id: 30216 | 30280 | 30232 | 30250 | 30251;
|
|
365
|
+
baseUrl?: string | undefined;
|
|
366
|
+
base_url: string;
|
|
367
|
+
backupUrl?: string[] | undefined;
|
|
368
|
+
backup_url: string[];
|
|
369
|
+
bandwidth: number;
|
|
370
|
+
mimeType?: string | undefined;
|
|
371
|
+
mime_type: string;
|
|
372
|
+
codecs: string;
|
|
373
|
+
width?: number | undefined;
|
|
374
|
+
height?: number | undefined;
|
|
375
|
+
frameRate?: string | undefined;
|
|
376
|
+
frame_rate?: string | undefined;
|
|
377
|
+
sar: string;
|
|
378
|
+
startWithSap?: number | undefined;
|
|
379
|
+
start_with_sap?: number | undefined;
|
|
380
|
+
SegmentBase?: {
|
|
381
|
+
Initialization: string;
|
|
382
|
+
indexRange: string;
|
|
383
|
+
} | undefined;
|
|
384
|
+
segment_base?: {
|
|
385
|
+
initialization: string;
|
|
386
|
+
index_range: string;
|
|
387
|
+
} | undefined;
|
|
388
|
+
codecid: VideoCodecId | 0;
|
|
389
|
+
};
|
|
390
|
+
} | {
|
|
391
|
+
subtitleItem: {
|
|
392
|
+
id: number;
|
|
393
|
+
id_str: string;
|
|
394
|
+
lan: string;
|
|
395
|
+
lan_doc: string;
|
|
396
|
+
is_lock: boolean;
|
|
397
|
+
subtitle_url: string;
|
|
398
|
+
subtitle_url_v2: string;
|
|
399
|
+
type: number;
|
|
400
|
+
ai_type: number;
|
|
401
|
+
ai_status: number;
|
|
402
|
+
};
|
|
403
|
+
audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
|
|
404
|
+
audio: {
|
|
405
|
+
id: 30216 | 30280 | 30232 | 30250 | 30251;
|
|
406
|
+
baseUrl?: string | undefined;
|
|
407
|
+
base_url: string;
|
|
408
|
+
backupUrl?: string[] | undefined;
|
|
409
|
+
backup_url: string[];
|
|
410
|
+
bandwidth: number;
|
|
411
|
+
mimeType?: string | undefined;
|
|
412
|
+
mime_type: string;
|
|
413
|
+
codecs: string;
|
|
414
|
+
width?: number | undefined;
|
|
415
|
+
height?: number | undefined;
|
|
416
|
+
frameRate?: string | undefined;
|
|
417
|
+
frame_rate?: string | undefined;
|
|
418
|
+
sar: string;
|
|
419
|
+
startWithSap?: number | undefined;
|
|
420
|
+
start_with_sap?: number | undefined;
|
|
421
|
+
SegmentBase?: {
|
|
422
|
+
Initialization: string;
|
|
423
|
+
indexRange: string;
|
|
424
|
+
} | undefined;
|
|
425
|
+
segment_base?: {
|
|
426
|
+
initialization: string;
|
|
427
|
+
index_range: string;
|
|
428
|
+
} | undefined;
|
|
429
|
+
codecid: VideoCodecId | 0;
|
|
430
|
+
};
|
|
431
|
+
} | {
|
|
432
|
+
videoPart: {
|
|
433
|
+
cid: number;
|
|
434
|
+
page: number;
|
|
435
|
+
from: "vupload" | "hunan" | "qq";
|
|
436
|
+
part: string;
|
|
437
|
+
duration: number;
|
|
438
|
+
vid?: string | undefined;
|
|
439
|
+
weblink?: string | undefined;
|
|
440
|
+
dimension?: {
|
|
441
|
+
width: number;
|
|
442
|
+
height: number;
|
|
443
|
+
rotate: 0 | 1;
|
|
444
|
+
} | undefined;
|
|
445
|
+
first_frame: string;
|
|
446
|
+
};
|
|
447
|
+
audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
|
|
448
|
+
audio: {
|
|
449
|
+
id: 30216 | 30280 | 30232 | 30250 | 30251;
|
|
450
|
+
baseUrl?: string | undefined;
|
|
451
|
+
base_url: string;
|
|
452
|
+
backupUrl?: string[] | undefined;
|
|
453
|
+
backup_url: string[];
|
|
454
|
+
bandwidth: number;
|
|
455
|
+
mimeType?: string | undefined;
|
|
456
|
+
mime_type: string;
|
|
457
|
+
codecs: string;
|
|
458
|
+
width?: number | undefined;
|
|
459
|
+
height?: number | undefined;
|
|
460
|
+
frameRate?: string | undefined;
|
|
461
|
+
frame_rate?: string | undefined;
|
|
462
|
+
sar: string;
|
|
463
|
+
startWithSap?: number | undefined;
|
|
464
|
+
start_with_sap?: number | undefined;
|
|
465
|
+
SegmentBase?: {
|
|
466
|
+
Initialization: string;
|
|
467
|
+
indexRange: string;
|
|
468
|
+
} | undefined;
|
|
469
|
+
segment_base?: {
|
|
470
|
+
initialization: string;
|
|
471
|
+
index_range: string;
|
|
472
|
+
} | undefined;
|
|
473
|
+
codecid: VideoCodecId | 0;
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
} | {
|
|
477
|
+
type: "video";
|
|
478
|
+
fullFilename: string;
|
|
479
|
+
source: {
|
|
480
|
+
videoQuality: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
|
|
481
|
+
videoCodec: VideoCodecId;
|
|
482
|
+
video: {
|
|
483
|
+
id: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
|
|
484
|
+
baseUrl?: string | undefined;
|
|
485
|
+
base_url: string;
|
|
486
|
+
backupUrl?: string[] | undefined;
|
|
487
|
+
backup_url: string[];
|
|
488
|
+
bandwidth: number;
|
|
489
|
+
mimeType?: string | undefined;
|
|
490
|
+
mime_type: string;
|
|
491
|
+
codecs: string;
|
|
492
|
+
width?: number | undefined;
|
|
493
|
+
height?: number | undefined;
|
|
494
|
+
frameRate?: string | undefined;
|
|
495
|
+
frame_rate?: string | undefined;
|
|
496
|
+
sar: string;
|
|
497
|
+
startWithSap?: number | undefined;
|
|
498
|
+
start_with_sap?: number | undefined;
|
|
499
|
+
SegmentBase?: {
|
|
500
|
+
Initialization: string;
|
|
501
|
+
indexRange: string;
|
|
502
|
+
} | undefined;
|
|
503
|
+
segment_base?: {
|
|
504
|
+
initialization: string;
|
|
505
|
+
index_range: string;
|
|
506
|
+
} | undefined;
|
|
507
|
+
codecid: VideoCodecId | 0;
|
|
508
|
+
};
|
|
509
|
+
} | {
|
|
510
|
+
audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
|
|
511
|
+
audio: {
|
|
512
|
+
id: 30216 | 30280 | 30232 | 30250 | 30251;
|
|
513
|
+
baseUrl?: string | undefined;
|
|
514
|
+
base_url: string;
|
|
515
|
+
backupUrl?: string[] | undefined;
|
|
516
|
+
backup_url: string[];
|
|
517
|
+
bandwidth: number;
|
|
518
|
+
mimeType?: string | undefined;
|
|
519
|
+
mime_type: string;
|
|
520
|
+
codecs: string;
|
|
521
|
+
width?: number | undefined;
|
|
522
|
+
height?: number | undefined;
|
|
523
|
+
frameRate?: string | undefined;
|
|
524
|
+
frame_rate?: string | undefined;
|
|
525
|
+
sar: string;
|
|
526
|
+
startWithSap?: number | undefined;
|
|
527
|
+
start_with_sap?: number | undefined;
|
|
528
|
+
SegmentBase?: {
|
|
529
|
+
Initialization: string;
|
|
530
|
+
indexRange: string;
|
|
531
|
+
} | undefined;
|
|
532
|
+
segment_base?: {
|
|
533
|
+
initialization: string;
|
|
534
|
+
index_range: string;
|
|
535
|
+
} | undefined;
|
|
536
|
+
codecid: VideoCodecId | 0;
|
|
537
|
+
};
|
|
538
|
+
videoQuality: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
|
|
539
|
+
videoCodec: VideoCodecId;
|
|
540
|
+
video: {
|
|
541
|
+
id: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
|
|
542
|
+
baseUrl?: string | undefined;
|
|
543
|
+
base_url: string;
|
|
544
|
+
backupUrl?: string[] | undefined;
|
|
545
|
+
backup_url: string[];
|
|
546
|
+
bandwidth: number;
|
|
547
|
+
mimeType?: string | undefined;
|
|
548
|
+
mime_type: string;
|
|
549
|
+
codecs: string;
|
|
550
|
+
width?: number | undefined;
|
|
551
|
+
height?: number | undefined;
|
|
552
|
+
frameRate?: string | undefined;
|
|
553
|
+
frame_rate?: string | undefined;
|
|
554
|
+
sar: string;
|
|
555
|
+
startWithSap?: number | undefined;
|
|
556
|
+
start_with_sap?: number | undefined;
|
|
557
|
+
SegmentBase?: {
|
|
558
|
+
Initialization: string;
|
|
559
|
+
indexRange: string;
|
|
560
|
+
} | undefined;
|
|
561
|
+
segment_base?: {
|
|
562
|
+
initialization: string;
|
|
563
|
+
index_range: string;
|
|
564
|
+
} | undefined;
|
|
565
|
+
codecid: VideoCodecId | 0;
|
|
566
|
+
};
|
|
567
|
+
} | {
|
|
568
|
+
coverUrl: string;
|
|
569
|
+
videoQuality: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
|
|
570
|
+
videoCodec: VideoCodecId;
|
|
571
|
+
video: {
|
|
572
|
+
id: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
|
|
573
|
+
baseUrl?: string | undefined;
|
|
574
|
+
base_url: string;
|
|
575
|
+
backupUrl?: string[] | undefined;
|
|
576
|
+
backup_url: string[];
|
|
577
|
+
bandwidth: number;
|
|
578
|
+
mimeType?: string | undefined;
|
|
579
|
+
mime_type: string;
|
|
580
|
+
codecs: string;
|
|
581
|
+
width?: number | undefined;
|
|
582
|
+
height?: number | undefined;
|
|
583
|
+
frameRate?: string | undefined;
|
|
584
|
+
frame_rate?: string | undefined;
|
|
585
|
+
sar: string;
|
|
586
|
+
startWithSap?: number | undefined;
|
|
587
|
+
start_with_sap?: number | undefined;
|
|
588
|
+
SegmentBase?: {
|
|
589
|
+
Initialization: string;
|
|
590
|
+
indexRange: string;
|
|
591
|
+
} | undefined;
|
|
592
|
+
segment_base?: {
|
|
593
|
+
initialization: string;
|
|
594
|
+
index_range: string;
|
|
595
|
+
} | undefined;
|
|
596
|
+
codecid: VideoCodecId | 0;
|
|
597
|
+
};
|
|
598
|
+
} | {
|
|
599
|
+
subtitleItem: {
|
|
600
|
+
id: number;
|
|
601
|
+
id_str: string;
|
|
602
|
+
lan: string;
|
|
603
|
+
lan_doc: string;
|
|
604
|
+
is_lock: boolean;
|
|
605
|
+
subtitle_url: string;
|
|
606
|
+
subtitle_url_v2: string;
|
|
607
|
+
type: number;
|
|
608
|
+
ai_type: number;
|
|
609
|
+
ai_status: number;
|
|
610
|
+
};
|
|
611
|
+
videoQuality: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
|
|
612
|
+
videoCodec: VideoCodecId;
|
|
613
|
+
video: {
|
|
614
|
+
id: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
|
|
615
|
+
baseUrl?: string | undefined;
|
|
616
|
+
base_url: string;
|
|
617
|
+
backupUrl?: string[] | undefined;
|
|
618
|
+
backup_url: string[];
|
|
619
|
+
bandwidth: number;
|
|
620
|
+
mimeType?: string | undefined;
|
|
621
|
+
mime_type: string;
|
|
622
|
+
codecs: string;
|
|
623
|
+
width?: number | undefined;
|
|
624
|
+
height?: number | undefined;
|
|
625
|
+
frameRate?: string | undefined;
|
|
626
|
+
frame_rate?: string | undefined;
|
|
627
|
+
sar: string;
|
|
628
|
+
startWithSap?: number | undefined;
|
|
629
|
+
start_with_sap?: number | undefined;
|
|
630
|
+
SegmentBase?: {
|
|
631
|
+
Initialization: string;
|
|
632
|
+
indexRange: string;
|
|
633
|
+
} | undefined;
|
|
634
|
+
segment_base?: {
|
|
635
|
+
initialization: string;
|
|
636
|
+
index_range: string;
|
|
637
|
+
} | undefined;
|
|
638
|
+
codecid: VideoCodecId | 0;
|
|
639
|
+
};
|
|
640
|
+
} | {
|
|
641
|
+
videoPart: {
|
|
642
|
+
cid: number;
|
|
643
|
+
page: number;
|
|
644
|
+
from: "vupload" | "hunan" | "qq";
|
|
645
|
+
part: string;
|
|
646
|
+
duration: number;
|
|
647
|
+
vid?: string | undefined;
|
|
648
|
+
weblink?: string | undefined;
|
|
649
|
+
dimension?: {
|
|
650
|
+
width: number;
|
|
651
|
+
height: number;
|
|
652
|
+
rotate: 0 | 1;
|
|
653
|
+
} | undefined;
|
|
654
|
+
first_frame: string;
|
|
655
|
+
};
|
|
656
|
+
videoQuality: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
|
|
657
|
+
videoCodec: VideoCodecId;
|
|
658
|
+
video: {
|
|
659
|
+
id: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
|
|
660
|
+
baseUrl?: string | undefined;
|
|
661
|
+
base_url: string;
|
|
662
|
+
backupUrl?: string[] | undefined;
|
|
663
|
+
backup_url: string[];
|
|
664
|
+
bandwidth: number;
|
|
665
|
+
mimeType?: string | undefined;
|
|
666
|
+
mime_type: string;
|
|
667
|
+
codecs: string;
|
|
668
|
+
width?: number | undefined;
|
|
669
|
+
height?: number | undefined;
|
|
670
|
+
frameRate?: string | undefined;
|
|
671
|
+
frame_rate?: string | undefined;
|
|
672
|
+
sar: string;
|
|
673
|
+
startWithSap?: number | undefined;
|
|
674
|
+
start_with_sap?: number | undefined;
|
|
675
|
+
SegmentBase?: {
|
|
676
|
+
Initialization: string;
|
|
677
|
+
indexRange: string;
|
|
678
|
+
} | undefined;
|
|
679
|
+
segment_base?: {
|
|
680
|
+
initialization: string;
|
|
681
|
+
index_range: string;
|
|
682
|
+
} | undefined;
|
|
683
|
+
codecid: VideoCodecId | 0;
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
} | {
|
|
687
|
+
type: "cover";
|
|
688
|
+
fullFilename: string;
|
|
689
|
+
source: {
|
|
690
|
+
coverUrl: string;
|
|
691
|
+
} | {
|
|
692
|
+
audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
|
|
693
|
+
audio: {
|
|
694
|
+
id: 30216 | 30280 | 30232 | 30250 | 30251;
|
|
695
|
+
baseUrl?: string | undefined;
|
|
696
|
+
base_url: string;
|
|
697
|
+
backupUrl?: string[] | undefined;
|
|
698
|
+
backup_url: string[];
|
|
699
|
+
bandwidth: number;
|
|
700
|
+
mimeType?: string | undefined;
|
|
701
|
+
mime_type: string;
|
|
702
|
+
codecs: string;
|
|
703
|
+
width?: number | undefined;
|
|
704
|
+
height?: number | undefined;
|
|
705
|
+
frameRate?: string | undefined;
|
|
706
|
+
frame_rate?: string | undefined;
|
|
707
|
+
sar: string;
|
|
708
|
+
startWithSap?: number | undefined;
|
|
709
|
+
start_with_sap?: number | undefined;
|
|
710
|
+
SegmentBase?: {
|
|
711
|
+
Initialization: string;
|
|
712
|
+
indexRange: string;
|
|
713
|
+
} | undefined;
|
|
714
|
+
segment_base?: {
|
|
715
|
+
initialization: string;
|
|
716
|
+
index_range: string;
|
|
717
|
+
} | undefined;
|
|
718
|
+
codecid: VideoCodecId | 0;
|
|
719
|
+
};
|
|
720
|
+
coverUrl: string;
|
|
721
|
+
} | {
|
|
722
|
+
videoQuality: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
|
|
723
|
+
videoCodec: VideoCodecId;
|
|
724
|
+
video: {
|
|
725
|
+
id: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
|
|
726
|
+
baseUrl?: string | undefined;
|
|
727
|
+
base_url: string;
|
|
728
|
+
backupUrl?: string[] | undefined;
|
|
729
|
+
backup_url: string[];
|
|
730
|
+
bandwidth: number;
|
|
731
|
+
mimeType?: string | undefined;
|
|
732
|
+
mime_type: string;
|
|
733
|
+
codecs: string;
|
|
734
|
+
width?: number | undefined;
|
|
735
|
+
height?: number | undefined;
|
|
736
|
+
frameRate?: string | undefined;
|
|
737
|
+
frame_rate?: string | undefined;
|
|
738
|
+
sar: string;
|
|
739
|
+
startWithSap?: number | undefined;
|
|
740
|
+
start_with_sap?: number | undefined;
|
|
741
|
+
SegmentBase?: {
|
|
742
|
+
Initialization: string;
|
|
743
|
+
indexRange: string;
|
|
744
|
+
} | undefined;
|
|
745
|
+
segment_base?: {
|
|
746
|
+
initialization: string;
|
|
747
|
+
index_range: string;
|
|
748
|
+
} | undefined;
|
|
749
|
+
codecid: VideoCodecId | 0;
|
|
750
|
+
};
|
|
751
|
+
coverUrl: string;
|
|
752
|
+
} | {
|
|
753
|
+
subtitleItem: {
|
|
754
|
+
id: number;
|
|
755
|
+
id_str: string;
|
|
756
|
+
lan: string;
|
|
757
|
+
lan_doc: string;
|
|
758
|
+
is_lock: boolean;
|
|
759
|
+
subtitle_url: string;
|
|
760
|
+
subtitle_url_v2: string;
|
|
761
|
+
type: number;
|
|
762
|
+
ai_type: number;
|
|
763
|
+
ai_status: number;
|
|
764
|
+
};
|
|
765
|
+
coverUrl: string;
|
|
766
|
+
} | {
|
|
767
|
+
videoPart: {
|
|
768
|
+
cid: number;
|
|
769
|
+
page: number;
|
|
770
|
+
from: "vupload" | "hunan" | "qq";
|
|
771
|
+
part: string;
|
|
772
|
+
duration: number;
|
|
773
|
+
vid?: string | undefined;
|
|
774
|
+
weblink?: string | undefined;
|
|
775
|
+
dimension?: {
|
|
776
|
+
width: number;
|
|
777
|
+
height: number;
|
|
778
|
+
rotate: 0 | 1;
|
|
779
|
+
} | undefined;
|
|
780
|
+
first_frame: string;
|
|
781
|
+
};
|
|
782
|
+
coverUrl: string;
|
|
783
|
+
};
|
|
784
|
+
} | {
|
|
785
|
+
type: "dm";
|
|
786
|
+
fullFilename: string;
|
|
787
|
+
source: {
|
|
788
|
+
videoPart: {
|
|
789
|
+
cid: number;
|
|
790
|
+
page: number;
|
|
791
|
+
from: "vupload" | "hunan" | "qq";
|
|
792
|
+
part: string;
|
|
793
|
+
duration: number;
|
|
794
|
+
vid?: string | undefined;
|
|
795
|
+
weblink?: string | undefined;
|
|
796
|
+
dimension?: {
|
|
797
|
+
width: number;
|
|
798
|
+
height: number;
|
|
799
|
+
rotate: 0 | 1;
|
|
800
|
+
} | undefined;
|
|
801
|
+
first_frame: string;
|
|
802
|
+
};
|
|
803
|
+
} | {
|
|
804
|
+
audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
|
|
805
|
+
audio: {
|
|
806
|
+
id: 30216 | 30280 | 30232 | 30250 | 30251;
|
|
807
|
+
baseUrl?: string | undefined;
|
|
808
|
+
base_url: string;
|
|
809
|
+
backupUrl?: string[] | undefined;
|
|
810
|
+
backup_url: string[];
|
|
811
|
+
bandwidth: number;
|
|
812
|
+
mimeType?: string | undefined;
|
|
813
|
+
mime_type: string;
|
|
814
|
+
codecs: string;
|
|
815
|
+
width?: number | undefined;
|
|
816
|
+
height?: number | undefined;
|
|
817
|
+
frameRate?: string | undefined;
|
|
818
|
+
frame_rate?: string | undefined;
|
|
819
|
+
sar: string;
|
|
820
|
+
startWithSap?: number | undefined;
|
|
821
|
+
start_with_sap?: number | undefined;
|
|
822
|
+
SegmentBase?: {
|
|
823
|
+
Initialization: string;
|
|
824
|
+
indexRange: string;
|
|
825
|
+
} | undefined;
|
|
826
|
+
segment_base?: {
|
|
827
|
+
initialization: string;
|
|
828
|
+
index_range: string;
|
|
829
|
+
} | undefined;
|
|
830
|
+
codecid: VideoCodecId | 0;
|
|
831
|
+
};
|
|
832
|
+
videoPart: {
|
|
833
|
+
cid: number;
|
|
834
|
+
page: number;
|
|
835
|
+
from: "vupload" | "hunan" | "qq";
|
|
836
|
+
part: string;
|
|
837
|
+
duration: number;
|
|
838
|
+
vid?: string | undefined;
|
|
839
|
+
weblink?: string | undefined;
|
|
840
|
+
dimension?: {
|
|
841
|
+
width: number;
|
|
842
|
+
height: number;
|
|
843
|
+
rotate: 0 | 1;
|
|
844
|
+
} | undefined;
|
|
845
|
+
first_frame: string;
|
|
846
|
+
};
|
|
847
|
+
} | {
|
|
848
|
+
videoQuality: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
|
|
849
|
+
videoCodec: VideoCodecId;
|
|
850
|
+
video: {
|
|
851
|
+
id: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
|
|
852
|
+
baseUrl?: string | undefined;
|
|
853
|
+
base_url: string;
|
|
854
|
+
backupUrl?: string[] | undefined;
|
|
855
|
+
backup_url: string[];
|
|
856
|
+
bandwidth: number;
|
|
857
|
+
mimeType?: string | undefined;
|
|
858
|
+
mime_type: string;
|
|
859
|
+
codecs: string;
|
|
860
|
+
width?: number | undefined;
|
|
861
|
+
height?: number | undefined;
|
|
862
|
+
frameRate?: string | undefined;
|
|
863
|
+
frame_rate?: string | undefined;
|
|
864
|
+
sar: string;
|
|
865
|
+
startWithSap?: number | undefined;
|
|
866
|
+
start_with_sap?: number | undefined;
|
|
867
|
+
SegmentBase?: {
|
|
868
|
+
Initialization: string;
|
|
869
|
+
indexRange: string;
|
|
870
|
+
} | undefined;
|
|
871
|
+
segment_base?: {
|
|
872
|
+
initialization: string;
|
|
873
|
+
index_range: string;
|
|
874
|
+
} | undefined;
|
|
875
|
+
codecid: VideoCodecId | 0;
|
|
876
|
+
};
|
|
877
|
+
videoPart: {
|
|
878
|
+
cid: number;
|
|
879
|
+
page: number;
|
|
880
|
+
from: "vupload" | "hunan" | "qq";
|
|
881
|
+
part: string;
|
|
882
|
+
duration: number;
|
|
883
|
+
vid?: string | undefined;
|
|
884
|
+
weblink?: string | undefined;
|
|
885
|
+
dimension?: {
|
|
886
|
+
width: number;
|
|
887
|
+
height: number;
|
|
888
|
+
rotate: 0 | 1;
|
|
889
|
+
} | undefined;
|
|
890
|
+
first_frame: string;
|
|
891
|
+
};
|
|
892
|
+
} | {
|
|
893
|
+
coverUrl: string;
|
|
894
|
+
videoPart: {
|
|
895
|
+
cid: number;
|
|
896
|
+
page: number;
|
|
897
|
+
from: "vupload" | "hunan" | "qq";
|
|
898
|
+
part: string;
|
|
899
|
+
duration: number;
|
|
900
|
+
vid?: string | undefined;
|
|
901
|
+
weblink?: string | undefined;
|
|
902
|
+
dimension?: {
|
|
903
|
+
width: number;
|
|
904
|
+
height: number;
|
|
905
|
+
rotate: 0 | 1;
|
|
906
|
+
} | undefined;
|
|
907
|
+
first_frame: string;
|
|
908
|
+
};
|
|
909
|
+
} | {
|
|
910
|
+
subtitleItem: {
|
|
911
|
+
id: number;
|
|
912
|
+
id_str: string;
|
|
913
|
+
lan: string;
|
|
914
|
+
lan_doc: string;
|
|
915
|
+
is_lock: boolean;
|
|
916
|
+
subtitle_url: string;
|
|
917
|
+
subtitle_url_v2: string;
|
|
918
|
+
type: number;
|
|
919
|
+
ai_type: number;
|
|
920
|
+
ai_status: number;
|
|
921
|
+
};
|
|
922
|
+
videoPart: {
|
|
923
|
+
cid: number;
|
|
924
|
+
page: number;
|
|
925
|
+
from: "vupload" | "hunan" | "qq";
|
|
926
|
+
part: string;
|
|
927
|
+
duration: number;
|
|
928
|
+
vid?: string | undefined;
|
|
929
|
+
weblink?: string | undefined;
|
|
930
|
+
dimension?: {
|
|
931
|
+
width: number;
|
|
932
|
+
height: number;
|
|
933
|
+
rotate: 0 | 1;
|
|
934
|
+
} | undefined;
|
|
935
|
+
first_frame: string;
|
|
936
|
+
};
|
|
937
|
+
};
|
|
938
|
+
} | {
|
|
939
|
+
type: "subtitle";
|
|
940
|
+
fullFilename: string;
|
|
941
|
+
source: {
|
|
942
|
+
subtitleItem: {
|
|
943
|
+
id: number;
|
|
944
|
+
id_str: string;
|
|
945
|
+
lan: string;
|
|
946
|
+
lan_doc: string;
|
|
947
|
+
is_lock: boolean;
|
|
948
|
+
subtitle_url: string;
|
|
949
|
+
subtitle_url_v2: string;
|
|
950
|
+
type: number;
|
|
951
|
+
ai_type: number;
|
|
952
|
+
ai_status: number;
|
|
953
|
+
};
|
|
954
|
+
} | {
|
|
955
|
+
audioQuality: 30216 | 30280 | 30232 | 30250 | 30251;
|
|
956
|
+
audio: {
|
|
957
|
+
id: 30216 | 30280 | 30232 | 30250 | 30251;
|
|
958
|
+
baseUrl?: string | undefined;
|
|
959
|
+
base_url: string;
|
|
960
|
+
backupUrl?: string[] | undefined;
|
|
961
|
+
backup_url: string[];
|
|
962
|
+
bandwidth: number;
|
|
963
|
+
mimeType?: string | undefined;
|
|
964
|
+
mime_type: string;
|
|
965
|
+
codecs: string;
|
|
966
|
+
width?: number | undefined;
|
|
967
|
+
height?: number | undefined;
|
|
968
|
+
frameRate?: string | undefined;
|
|
969
|
+
frame_rate?: string | undefined;
|
|
970
|
+
sar: string;
|
|
971
|
+
startWithSap?: number | undefined;
|
|
972
|
+
start_with_sap?: number | undefined;
|
|
973
|
+
SegmentBase?: {
|
|
974
|
+
Initialization: string;
|
|
975
|
+
indexRange: string;
|
|
976
|
+
} | undefined;
|
|
977
|
+
segment_base?: {
|
|
978
|
+
initialization: string;
|
|
979
|
+
index_range: string;
|
|
980
|
+
} | undefined;
|
|
981
|
+
codecid: VideoCodecId | 0;
|
|
982
|
+
};
|
|
983
|
+
subtitleItem: {
|
|
984
|
+
id: number;
|
|
985
|
+
id_str: string;
|
|
986
|
+
lan: string;
|
|
987
|
+
lan_doc: string;
|
|
988
|
+
is_lock: boolean;
|
|
989
|
+
subtitle_url: string;
|
|
990
|
+
subtitle_url_v2: string;
|
|
991
|
+
type: number;
|
|
992
|
+
ai_type: number;
|
|
993
|
+
ai_status: number;
|
|
994
|
+
};
|
|
995
|
+
} | {
|
|
996
|
+
videoQuality: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
|
|
997
|
+
videoCodec: VideoCodecId;
|
|
998
|
+
video: {
|
|
999
|
+
id: 100 | 80 | 6 | 16 | 32 | 64 | 74 | 112 | 116 | 120 | 125 | 126 | 127 | 129;
|
|
1000
|
+
baseUrl?: string | undefined;
|
|
1001
|
+
base_url: string;
|
|
1002
|
+
backupUrl?: string[] | undefined;
|
|
1003
|
+
backup_url: string[];
|
|
1004
|
+
bandwidth: number;
|
|
1005
|
+
mimeType?: string | undefined;
|
|
1006
|
+
mime_type: string;
|
|
1007
|
+
codecs: string;
|
|
1008
|
+
width?: number | undefined;
|
|
1009
|
+
height?: number | undefined;
|
|
1010
|
+
frameRate?: string | undefined;
|
|
1011
|
+
frame_rate?: string | undefined;
|
|
1012
|
+
sar: string;
|
|
1013
|
+
startWithSap?: number | undefined;
|
|
1014
|
+
start_with_sap?: number | undefined;
|
|
1015
|
+
SegmentBase?: {
|
|
1016
|
+
Initialization: string;
|
|
1017
|
+
indexRange: string;
|
|
1018
|
+
} | undefined;
|
|
1019
|
+
segment_base?: {
|
|
1020
|
+
initialization: string;
|
|
1021
|
+
index_range: string;
|
|
1022
|
+
} | undefined;
|
|
1023
|
+
codecid: VideoCodecId | 0;
|
|
1024
|
+
};
|
|
1025
|
+
subtitleItem: {
|
|
1026
|
+
id: number;
|
|
1027
|
+
id_str: string;
|
|
1028
|
+
lan: string;
|
|
1029
|
+
lan_doc: string;
|
|
1030
|
+
is_lock: boolean;
|
|
1031
|
+
subtitle_url: string;
|
|
1032
|
+
subtitle_url_v2: string;
|
|
1033
|
+
type: number;
|
|
1034
|
+
ai_type: number;
|
|
1035
|
+
ai_status: number;
|
|
1036
|
+
};
|
|
1037
|
+
} | {
|
|
1038
|
+
coverUrl: string;
|
|
1039
|
+
subtitleItem: {
|
|
1040
|
+
id: number;
|
|
1041
|
+
id_str: string;
|
|
1042
|
+
lan: string;
|
|
1043
|
+
lan_doc: string;
|
|
1044
|
+
is_lock: boolean;
|
|
1045
|
+
subtitle_url: string;
|
|
1046
|
+
subtitle_url_v2: string;
|
|
1047
|
+
type: number;
|
|
1048
|
+
ai_type: number;
|
|
1049
|
+
ai_status: number;
|
|
1050
|
+
};
|
|
1051
|
+
} | {
|
|
1052
|
+
videoPart: {
|
|
1053
|
+
cid: number;
|
|
1054
|
+
page: number;
|
|
1055
|
+
from: "vupload" | "hunan" | "qq";
|
|
1056
|
+
part: string;
|
|
1057
|
+
duration: number;
|
|
1058
|
+
vid?: string | undefined;
|
|
1059
|
+
weblink?: string | undefined;
|
|
1060
|
+
dimension?: {
|
|
1061
|
+
width: number;
|
|
1062
|
+
height: number;
|
|
1063
|
+
rotate: 0 | 1;
|
|
1064
|
+
} | undefined;
|
|
1065
|
+
first_frame: string;
|
|
1066
|
+
};
|
|
1067
|
+
subtitleItem: {
|
|
1068
|
+
id: number;
|
|
1069
|
+
id_str: string;
|
|
1070
|
+
lan: string;
|
|
1071
|
+
lan_doc: string;
|
|
1072
|
+
is_lock: boolean;
|
|
1073
|
+
subtitle_url: string;
|
|
1074
|
+
subtitle_url_v2: string;
|
|
1075
|
+
type: number;
|
|
1076
|
+
ai_type: number;
|
|
1077
|
+
ai_status: number;
|
|
1078
|
+
};
|
|
1079
|
+
};
|
|
1080
|
+
})[];
|
|
1081
|
+
}[];
|
|
1082
|
+
}[];
|
|
1083
|
+
status: DownloadTaskStatus;
|
|
1084
|
+
progress?: {
|
|
1085
|
+
totalBytes: number;
|
|
1086
|
+
completedBytes: number;
|
|
1087
|
+
percent: number;
|
|
1088
|
+
speedKBps: number;
|
|
1089
|
+
currentItem: number;
|
|
1090
|
+
} | undefined;
|
|
1091
|
+
result?: {
|
|
1092
|
+
totalBytes: number;
|
|
1093
|
+
} | undefined;
|
|
1094
|
+
error?: string | undefined;
|
|
1095
|
+
createdAt: number;
|
|
1096
|
+
updatedAt?: number | undefined;
|
|
1097
|
+
userCookie: {
|
|
1098
|
+
uid: number;
|
|
1099
|
+
bili_jct: string;
|
|
1100
|
+
cookie: string;
|
|
1101
|
+
};
|
|
1102
|
+
settings?: {
|
|
1103
|
+
autoMerge?: boolean | undefined;
|
|
1104
|
+
} | undefined;
|
|
1105
|
+
};
|
|
1106
|
+
}): any;
|
|
1107
|
+
};
|
|
1108
|
+
refs: {
|
|
1109
|
+
refList: HTMLDivElement;
|
|
1110
|
+
};
|
|
1111
|
+
rootEl: any;
|
|
1112
|
+
};
|
|
1113
|
+
|
|
111
1114
|
declare function __VLS_template_2(): {
|
|
112
1115
|
attrs: Partial<{}>;
|
|
113
1116
|
slots: {
|
|
@@ -177,8 +1180,23 @@ declare function __VLS_template_8(): {
|
|
|
177
1180
|
rootEl: HTMLDivElement;
|
|
178
1181
|
};
|
|
179
1182
|
|
|
1183
|
+
declare function __VLS_template_9(): {
|
|
1184
|
+
attrs: Partial<{}>;
|
|
1185
|
+
slots: {
|
|
1186
|
+
default?(_: {}): any;
|
|
1187
|
+
};
|
|
1188
|
+
refs: {
|
|
1189
|
+
refVideoList: HTMLDivElement;
|
|
1190
|
+
};
|
|
1191
|
+
rootEl: HTMLDivElement;
|
|
1192
|
+
};
|
|
1193
|
+
|
|
180
1194
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
181
1195
|
|
|
1196
|
+
declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
|
|
1197
|
+
|
|
1198
|
+
declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
|
|
1199
|
+
|
|
182
1200
|
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
183
1201
|
|
|
184
1202
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
@@ -193,12 +1211,26 @@ declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
|
|
|
193
1211
|
|
|
194
1212
|
declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
|
|
195
1213
|
|
|
1214
|
+
declare type __VLS_TemplateResult_9 = ReturnType<typeof __VLS_template_9>;
|
|
1215
|
+
|
|
196
1216
|
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
197
1217
|
new (): {
|
|
198
1218
|
$slots: S;
|
|
199
1219
|
};
|
|
200
1220
|
};
|
|
201
1221
|
|
|
1222
|
+
declare type __VLS_WithTemplateSlots_10<T, S> = T & {
|
|
1223
|
+
new (): {
|
|
1224
|
+
$slots: S;
|
|
1225
|
+
};
|
|
1226
|
+
};
|
|
1227
|
+
|
|
1228
|
+
declare type __VLS_WithTemplateSlots_11<T, S> = T & {
|
|
1229
|
+
new (): {
|
|
1230
|
+
$slots: S;
|
|
1231
|
+
};
|
|
1232
|
+
};
|
|
1233
|
+
|
|
202
1234
|
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
203
1235
|
new (): {
|
|
204
1236
|
$slots: S;
|
|
@@ -241,6 +1273,12 @@ declare type __VLS_WithTemplateSlots_8<T, S> = T & {
|
|
|
241
1273
|
};
|
|
242
1274
|
};
|
|
243
1275
|
|
|
1276
|
+
declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
1277
|
+
new (): {
|
|
1278
|
+
$slots: S;
|
|
1279
|
+
};
|
|
1280
|
+
};
|
|
1281
|
+
|
|
244
1282
|
declare function addLog(msg: string): void;
|
|
245
1283
|
|
|
246
1284
|
declare const AppIcon_2: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
|
|
@@ -251,6 +1289,8 @@ export declare type AppThemeCssVars = Record<string, string>;
|
|
|
251
1289
|
declare const AppTooltip_2: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
252
1290
|
export { AppTooltip_2 as AppTooltip }
|
|
253
1291
|
|
|
1292
|
+
declare type AvailableStat = keyof Pick<VideoStat, 'like' | 'coin' | 'favorite' | 'share' | 'reply'>;
|
|
1293
|
+
|
|
254
1294
|
/**
|
|
255
1295
|
* 更新主题色的基本方法
|
|
256
1296
|
*/
|
|
@@ -301,16 +1341,92 @@ export declare interface CountdownDialogProps {
|
|
|
301
1341
|
width?: number;
|
|
302
1342
|
}
|
|
303
1343
|
|
|
1344
|
+
declare const DeleteConfirmDialog_2: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1345
|
+
confirm: (deleteSourceFile: boolean) => any;
|
|
1346
|
+
cancel: () => any;
|
|
1347
|
+
}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
|
|
1348
|
+
onConfirm?: ((deleteSourceFile: boolean) => any) | undefined;
|
|
1349
|
+
onCancel?: (() => any) | undefined;
|
|
1350
|
+
}>, {
|
|
1351
|
+
title: string;
|
|
1352
|
+
cancelButtonText: string;
|
|
1353
|
+
confirmButtonText: string;
|
|
1354
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1355
|
+
export { DeleteConfirmDialog_2 as DeleteConfirmDialog }
|
|
1356
|
+
|
|
1357
|
+
export declare interface DeleteConfirmDialogOptions {
|
|
1358
|
+
title?: string;
|
|
1359
|
+
message: string;
|
|
1360
|
+
confirmButtonText?: string;
|
|
1361
|
+
cancelButtonText?: string;
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
export declare interface DeleteConfirmDialogResult {
|
|
1365
|
+
deleteSourceFile: boolean;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
declare const DownloadDetailsDialog_2: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
1369
|
+
export { DownloadDetailsDialog_2 as DownloadDetailsDialog }
|
|
1370
|
+
|
|
1371
|
+
declare const DownloadItem_2: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
1372
|
+
export { DownloadItem_2 as DownloadItem }
|
|
1373
|
+
|
|
1374
|
+
declare const DownloadManagePage_2: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
1375
|
+
export { DownloadManagePage_2 as DownloadManagePage }
|
|
1376
|
+
|
|
1377
|
+
declare const DownloadProgress_2: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1378
|
+
export { DownloadProgress_2 as DownloadProgress }
|
|
1379
|
+
|
|
1380
|
+
declare const DownloadProgressDetails_2: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1381
|
+
export { DownloadProgressDetails_2 as DownloadProgressDetails }
|
|
1382
|
+
|
|
1383
|
+
declare const DownloadResourceTag_2: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1384
|
+
export { DownloadResourceTag_2 as DownloadResourceTag }
|
|
1385
|
+
|
|
1386
|
+
declare const DownloadResult_2: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1387
|
+
export { DownloadResult_2 as DownloadResult }
|
|
1388
|
+
|
|
1389
|
+
declare const DownloadStatus_2: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1390
|
+
export { DownloadStatus_2 as DownloadStatus }
|
|
1391
|
+
|
|
1392
|
+
declare type DownloadTaskAction = 'pause' | 'resume' | 'cancel' | 'delete' | 'open-folder' | 'show-details';
|
|
1393
|
+
|
|
1394
|
+
declare const DownloadVideoCard_2: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1395
|
+
"open-folder": (partIndex: number) => any;
|
|
1396
|
+
}, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{
|
|
1397
|
+
"onOpen-folder"?: ((partIndex: number) => any) | undefined;
|
|
1398
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1399
|
+
export { DownloadVideoCard_2 as DownloadVideoCard }
|
|
1400
|
+
|
|
1401
|
+
declare const DownloadVideoPartCard_2: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1402
|
+
export { DownloadVideoPartCard_2 as DownloadVideoPartCard }
|
|
1403
|
+
|
|
304
1404
|
declare const ExternalLink_2: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
305
1405
|
export { ExternalLink_2 as ExternalLink }
|
|
306
1406
|
|
|
307
1407
|
export declare type FetchPage<D, Q = undefined> = Q extends undefined ? (pageParams: PageParams) => Promise<PageResult<D>> : (pageParams: PageParams, queryParams: Q) => Promise<PageResult<D>>;
|
|
308
1408
|
|
|
1409
|
+
export declare const formatBytes: (bytes: number) => string;
|
|
1410
|
+
|
|
1411
|
+
export declare const formatSpeed: (speedKBps: number) => string;
|
|
1412
|
+
|
|
1413
|
+
export declare const formatStatCount: (viewCount: number) => string;
|
|
1414
|
+
|
|
1415
|
+
export declare const handleCancel: (task: DownloadTask) => Promise<void>;
|
|
1416
|
+
|
|
1417
|
+
export declare const handleDelete: (task: DownloadTask) => Promise<void>;
|
|
1418
|
+
|
|
309
1419
|
/**
|
|
310
1420
|
* 统一处理错误
|
|
311
1421
|
*/
|
|
312
1422
|
export declare const handleError: (error: unknown) => void;
|
|
313
1423
|
|
|
1424
|
+
export declare const handleOpenFolder: (task: DownloadTask) => Promise<void>;
|
|
1425
|
+
|
|
1426
|
+
export declare const handlePause: (task: DownloadTask) => Promise<void>;
|
|
1427
|
+
|
|
1428
|
+
export declare const handleResume: (task: DownloadTask) => Promise<void>;
|
|
1429
|
+
|
|
314
1430
|
declare const IconButton_2: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
315
1431
|
click: (...args: any[]) => void;
|
|
316
1432
|
}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{
|
|
@@ -458,6 +1574,7 @@ declare const PageTable_2: <D extends Record<PropertyKey, any>, Q>(__VLS_props:
|
|
|
458
1574
|
}>;
|
|
459
1575
|
refresh: () => Promise<void>;
|
|
460
1576
|
resetAndRefresh: () => Promise<void>;
|
|
1577
|
+
resetPageAndRefresh: () => Promise<void>;
|
|
461
1578
|
getSelectionRows: (() => DefaultRow[]) | undefined;
|
|
462
1579
|
toggleRowSelection: ((row: DefaultRow, selected?: boolean, ignoreSelectable?: boolean) => void) | undefined;
|
|
463
1580
|
setCurrentRow: ((row?: DefaultRow | undefined) => void) | undefined;
|
|
@@ -505,6 +1622,8 @@ export declare type PageTableProps<D, Q = undefined> = {
|
|
|
505
1622
|
tableLayout?: 'auto' | 'fixed';
|
|
506
1623
|
};
|
|
507
1624
|
|
|
1625
|
+
export declare const parseVideoZoneLabel: (video: VideoInfoSnapshot) => string;
|
|
1626
|
+
|
|
508
1627
|
export declare interface PluginMenuData {
|
|
509
1628
|
title: string;
|
|
510
1629
|
path: string;
|
|
@@ -621,6 +1740,8 @@ export declare function showConfirm(message: string, title?: string, options?: E
|
|
|
621
1740
|
*/
|
|
622
1741
|
export declare function showConfirmSequence(confirms: Array<Parameters<typeof showConfirm>>): Promise<void>;
|
|
623
1742
|
|
|
1743
|
+
export declare function showDeleteConfirmDialog(options: DeleteConfirmDialogOptions): Promise<DeleteConfirmDialogResult>;
|
|
1744
|
+
|
|
624
1745
|
/**
|
|
625
1746
|
* 显示错误提示
|
|
626
1747
|
*/
|
|
@@ -778,6 +1899,7 @@ export declare const usePageTable: <D, Q = undefined>(options: UsePageTableOptio
|
|
|
778
1899
|
loading: Ref<boolean, boolean>;
|
|
779
1900
|
refresh: () => Promise<void>;
|
|
780
1901
|
resetAndRefresh: () => Promise<void>;
|
|
1902
|
+
resetPageAndRefresh: () => Promise<void>;
|
|
781
1903
|
handleSizeChange: () => Promise<void>;
|
|
782
1904
|
handleCurrPageChange: () => Promise<void>;
|
|
783
1905
|
};
|
|
@@ -795,13 +1917,16 @@ declare interface UsePageTableOptions<D, Q = undefined> {
|
|
|
795
1917
|
onLoaded?: () => void | Promise<void>;
|
|
796
1918
|
}
|
|
797
1919
|
|
|
798
|
-
export declare const useSelectData: <Data, ID>(dataList: MaybeRefOrGetter<Data[]>, getId: (data: Data) => ID) => {
|
|
1920
|
+
export declare const useSelectData: <Data, ID>(dataList: MaybeRefOrGetter<Data[]>, getId: (data: Data) => ID, defaultList?: ID[]) => {
|
|
799
1921
|
selectedIds: ShallowRef<ID[], ID[]>;
|
|
800
|
-
isSelected: (
|
|
801
|
-
toggleSelect: (
|
|
802
|
-
isAllSelected:
|
|
1922
|
+
isSelected: (data: Data) => boolean;
|
|
1923
|
+
toggleSelect: (data: Data) => void;
|
|
1924
|
+
isAllSelected: ComputedRef<boolean>;
|
|
803
1925
|
toggleAll: () => void;
|
|
804
1926
|
getSelectedData: () => Data[];
|
|
1927
|
+
cleanupSelected: () => void;
|
|
1928
|
+
clearSelected: () => void;
|
|
1929
|
+
select: (ids: ID[]) => void;
|
|
805
1930
|
};
|
|
806
1931
|
|
|
807
1932
|
/**
|
|
@@ -827,6 +1952,13 @@ setUser: (user: UserInfoWithCookie) => void;
|
|
|
827
1952
|
assertLoggedIn: () => void;
|
|
828
1953
|
}, "init" | "deleteUser" | "setUser" | "assertLoggedIn">>;
|
|
829
1954
|
|
|
1955
|
+
declare const VideoStatsInfo_2: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{}>, {
|
|
1956
|
+
fields: AvailableStat[];
|
|
1957
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1958
|
+
export { VideoStatsInfo_2 as VideoStatsInfo }
|
|
1959
|
+
|
|
1960
|
+
declare const visible: ModelRef<boolean, string, boolean, boolean>;
|
|
1961
|
+
|
|
830
1962
|
export declare const whiteColor = "#ffffff";
|
|
831
1963
|
|
|
832
1964
|
export { }
|