Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
fix: add phase property to GenericDownloadItem and syncQueueState function
Tonho9b225347c61b
diff --git a/src/lib/stores/download-store.svelte.ts b/src/lib/stores/download-store.svelte.tsindex fe95a6dc..0b253fed 100644--- a/src/lib/stores/download-store.svelte.ts+++ b/src/lib/stores/download-store.svelte.ts@@ -28,6 +28,7 @@ export type GenericDownloadItem = BaseItem & {speed: number;downloadedBytes: number;totalBytes: number | null;+ phase: string;filePath?: string;fileCount?: number;};@@ -220,6 +221,7 @@ export function syncQueueState(items: QueueItemInfo[]) {speed: dlStatus === "downloading" ? speed : 0,downloadedBytes: qi.downloaded_bytes,totalBytes: qi.total_bytes,+ phase: (existing?.kind === "generic" ? existing.phase : undefined) ?? "queued",status: dlStatus,error: extractError(qi.status),startedAt: existing?.startedAt ?? now,