mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Add detailed download progress
This commit is contained in:
13
task.ts
13
task.ts
@@ -14,10 +14,23 @@ export type Task<T extends TaskType = TaskType> = {
|
||||
details: string | null;
|
||||
};
|
||||
|
||||
export type TaskDownloadSingleProgress = {
|
||||
index: number;
|
||||
token: string;
|
||||
name: string;
|
||||
width: number;
|
||||
height: number;
|
||||
is_original: boolean;
|
||||
total: number;
|
||||
started: number;
|
||||
downloaded: number;
|
||||
};
|
||||
|
||||
export type TaskDownloadProgess = {
|
||||
downloaded_page: number;
|
||||
failed_page: number;
|
||||
total_page: number;
|
||||
details: TaskDownloadSingleProgress[];
|
||||
};
|
||||
|
||||
export type TaskExportZipProgress = {
|
||||
|
||||
Reference in New Issue
Block a user