mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-05 03:23:31 +08:00
Add meiliserach server support
Fix GalleryMetadata contains escaped html data
This commit is contained in:
7
task.ts
7
task.ts
@@ -1,6 +1,7 @@
|
||||
export enum TaskType {
|
||||
Download,
|
||||
ExportZip,
|
||||
UpdateMeiliSearchData,
|
||||
}
|
||||
|
||||
export type Task<T extends TaskType = TaskType> = {
|
||||
@@ -23,9 +24,15 @@ export type TaskExportZipProgress = {
|
||||
total_page: number;
|
||||
};
|
||||
|
||||
export type TaskUpdateMeiliSearchDataProgress = {
|
||||
total_gallery: number;
|
||||
updated_gallery: number;
|
||||
};
|
||||
|
||||
export type TaskProgressBasicType = {
|
||||
[TaskType.Download]: TaskDownloadProgess;
|
||||
[TaskType.ExportZip]: TaskExportZipProgress;
|
||||
[TaskType.UpdateMeiliSearchData]: TaskUpdateMeiliSearchDataProgress;
|
||||
};
|
||||
|
||||
export type TaskProgress<T extends TaskType = TaskType> = {
|
||||
|
||||
Reference in New Issue
Block a user