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
feat: add file_count to GenericCompletePayload and update completion handler
Tonho61c8f234e448
diff --git a/src/lib/stores/download-listener.ts b/src/lib/stores/download-listener.tsindex 26be4b55..a57330f5 100644--- a/src/lib/stores/download-listener.ts+++ b/src/lib/stores/download-listener.ts@@ -43,6 +43,7 @@ type GenericCompletePayload = {error: string | null;file_path: string | null;file_size_bytes: number | null;+ file_count: number | null;};const seenCourseIds = new Set<number>();@@ -105,7 +106,7 @@ export async function initDownloadListener(): Promise<() => void> {"generic-download-complete",(event) => {const d = event.payload;- markGenericComplete(d.id, d.success, d.error ?? undefined, d.file_path ?? undefined);+ markGenericComplete(d.id, d.success, d.error ?? undefined, d.file_path ?? undefined, d.file_count ?? undefined);const tr = get(t);if (d.success) {