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.

feat: update download status handling to include queued and paused states

Tonho3acfe6856ab4
diff --git a/src/routes/hotmart/+page.svelte b/src/routes/hotmart/+page.svelte
index c54d4939..9b661f25 100644
--- a/src/routes/hotmart/+page.svelte
+++ b/src/routes/hotmart/+page.svelte
@@ -131,7 +131,9 @@
function getCourseDownloadStatus(courseId: number): "idle" | "downloading" | "complete" | "error" {
const item = downloads.get(courseId);
if (!item) return "idle";
- return item.status;
+ const s = item.status;
+ if (s === "queued" || s === "paused") return "downloading";
+ return s;
}
function getCourseDownloadPercent(courseId: number): number {