Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

fix: add phase parameter to upsertGenericProgress function

Tonhoe989a5f0a062
diff --git a/src/lib/stores/download-store.svelte.ts b/src/lib/stores/download-store.svelte.ts
index 0b253fed..9a8cef86 100644
--- a/src/lib/stores/download-store.svelte.ts
+++ b/src/lib/stores/download-store.svelte.ts
@@ -267,6 +267,7 @@ export function upsertGenericProgress(
speedBytesPerSec: number,
downloadedBytes: number,
totalBytes: number | null,
+ phase: string,
) {
const now = Date.now();
const existing = downloads.get(id);
@@ -285,6 +286,7 @@ export function upsertGenericProgress(
speed,
downloadedBytes,
totalBytes,
+ phase,
status: "downloading",
startedAt: existing?.startedAt ?? now,
lastUpdateAt: now,