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(magnet): implement frontend UI for seeding status and stop actions
InstaZDLL77b98ebc8a33
diff --git a/src/lib/i18n/el.json b/src/lib/i18n/el.jsonindex 4e125891..1cecddf5 100644--- a/src/lib/i18n/el.json+++ b/src/lib/i18n/el.json@@ -17,7 +17,8 @@"downloading": "Λήψη","paused": "Σε παύση","complete": "Ολοκληρωμένη",- "error": "Σφάλμα"+ "error": "Σφάλμα",+ "seeding": "Διαμοιρασμός"},"section_queued": "Στην ουρά","section_finished": "Ολοκληρωμένη",@@ -33,7 +34,8 @@"cancel": "Ακύρωση","clear_finished": "Εκκαθάριση των ολοκληρωμένων","show_more": "Δείξε {{count}} περισσότερα",- "open_folder": "Εμφάνιση στο φάκελο"+ "open_folder": "Εμφάνιση στο φάκελο",+ "stop": "Διακοπή"},"toast": {"download_preparing": "Προετοιμασία λήψης...",diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.jsonindex 789a8b78..80f16b4a 100644--- a/src/lib/i18n/en.json+++ b/src/lib/i18n/en.json@@ -17,7 +17,8 @@"downloading": "Downloading","paused": "Paused","complete": "Complete",- "error": "Error"+ "error": "Error",+ "seeding": "Seeding"},"section_queued": "Queued","section_finished": "Finished",@@ -33,7 +34,8 @@"cancel": "Cancel","clear_finished": "Clear finished","show_more": "Show {{count}} more",- "open_folder": "Show in folder"+ "open_folder": "Show in folder",+ "stop": "Stop"},"toast": {"download_preparing": "Preparing download...",diff --git a/src/lib/i18n/fr.json b/src/lib/i18n/fr.jsonindex fd9c9e66..6a3a6367 100644--- a/src/lib/i18n/fr.json+++ b/src/lib/i18n/fr.json@@ -17,7 +17,8 @@"downloading": "En cours","paused": "En pause","complete": "Terminé",- "error": "Erreur"+ "error": "Erreur",+ "seeding": "En partage"},"section_queued": "En file d'attente","section_finished": "Terminés",@@ -33,7 +34,8 @@"cancel": "Annuler","clear_finished": "Effacer les terminés","show_more": "Afficher {{count}} de plus",- "open_folder": "Afficher dans le dossier"+ "open_folder": "Afficher dans le dossier",+ "stop": "Arrêter"},"toast": {"download_preparing": "Préparation du téléchargement...",diff --git a/src/lib/i18n/it.json b/src/lib/i18n/it.jsonindex a7849e31..b911611f 100644--- a/src/lib/i18n/it.json+++ b/src/lib/i18n/it.json@@ -17,7 +17,8 @@"downloading": "In download","paused": "In pausa","complete": "Completato",- "error": "Errore"+ "error": "Errore",+ "seeding": "In seeding"},"section_queued": "In coda","section_finished": "Completati",@@ -33,7 +34,8 @@"cancel": "Annulla","clear_finished": "Cancella completati","show_more": "Mostra altri {{count}}",- "open_folder": "Mostra nella cartella"+ "open_folder": "Mostra nella cartella",+ "stop": "Ferma"},"toast": {"download_preparing": "Preparazione download...",@@ -458,4 +460,4 @@"page_access_failed": "Impossibile accedere alla pagina — controlla il link e la connessione","no_formats": "Nessun formato video trovato per questo link"}-}\ No newline at end of file+}diff --git a/src/lib/i18n/ja.json b/src/lib/i18n/ja.jsonindex 53e826d6..4cdcbb1b 100644--- a/src/lib/i18n/ja.json+++ b/src/lib/i18n/ja.json@@ -17,7 +17,8 @@"downloading": "ダウンロード中","paused": "一時停止","complete": "完了",- "error": "エラー"+ "error": "エラー",+ "seeding": "シード中"},"section_queued": "待機中","section_finished": "完了済み",@@ -33,7 +34,8 @@"cancel": "キャンセル","clear_finished": "完了済みをクリア","show_more": "さらに {{count}} 件を表示",- "open_folder": "フォルダーで表示"+ "open_folder": "フォルダーで表示",+ "stop": "停止"},"toast": {"download_preparing": "ダウンロードを準備中...",diff --git a/src/lib/i18n/pt.json b/src/lib/i18n/pt.jsonindex 22ae6912..5b536b07 100644--- a/src/lib/i18n/pt.json+++ b/src/lib/i18n/pt.json@@ -17,7 +17,8 @@"downloading": "Baixando","paused": "Pausado","complete": "Concluído",- "error": "Erro"+ "error": "Erro",+ "seeding": "Semeando"},"section_queued": "Na fila","section_finished": "Concluídos",@@ -33,7 +34,8 @@"cancel": "Cancelar","clear_finished": "Limpar finalizados","show_more": "Mostrar mais {{count}}",- "open_folder": "Abrir pasta"+ "open_folder": "Abrir pasta",+ "stop": "Parar"},"toast": {"download_preparing": "Preparando download...",diff --git a/src/lib/i18n/zh.json b/src/lib/i18n/zh.jsonindex 9e757730..534d645c 100644--- a/src/lib/i18n/zh.json+++ b/src/lib/i18n/zh.json@@ -17,7 +17,8 @@"downloading": "下载中","paused": "已暂停","complete": "已完成",- "error": "错误"+ "error": "错误",+ "seeding": "做种中"},"section_queued": "排队中","section_finished": "已完成",@@ -33,7 +34,8 @@"cancel": "取消","clear_finished": "清除已完成","show_more": "显示更多 {{count}} 项",- "open_folder": "在文件夹中显示"+ "open_folder": "在文件夹中显示",+ "stop": "停止"},"toast": {"download_preparing": "正在准备下载...",diff --git a/src/lib/stores/download-store.svelte.ts b/src/lib/stores/download-store.svelte.tsindex 1b68f92a..c498834a 100644--- a/src/lib/stores/download-store.svelte.ts+++ b/src/lib/stores/download-store.svelte.ts@@ -1,4 +1,4 @@-export type DownloadStatus = "queued" | "downloading" | "paused" | "complete" | "error";+export type DownloadStatus = "queued" | "downloading" | "paused" | "complete" | "error" | "seeding";type BaseItem = {id: number;@@ -71,7 +71,8 @@ export function getCounts(): DownloadCounts {let active = 0, queued = 0, paused = 0, finished = 0;for (const item of downloads.values()) {switch (item.status) {- case "downloading": active++; break;+ case "downloading":+ case "seeding": active++; break;case "queued": queued++; break;case "paused": paused++; break;case "complete":@@ -204,6 +205,7 @@ function queueStatusToDownloadStatus(status: { type: string; data?: unknown }):case "Queued": return "queued";case "Active": return "downloading";case "Paused": return "paused";+ case "Seeding": return "seeding";case "Complete": return "complete";case "Error": return "error";default: return "queued";@@ -245,7 +247,7 @@ export function syncQueueState(items: QueueItemInfo[]) {name: qi.title,platform: qi.platform,percent: Math.max(0, qi.percent),- speed: dlStatus === "downloading" ? speed : 0,+ speed: (dlStatus === "downloading" || dlStatus === "seeding") ? speed : 0,downloadedBytes: qi.downloaded_bytes,totalBytes: qi.total_bytes,phase: (existing?.kind === "generic" ? existing.phase : undefined) ?? "queued",diff --git a/src/routes/downloads/+page.svelte b/src/routes/downloads/+page.svelteindex 381a6e8c..3024b3b9 100644--- a/src/routes/downloads/+page.svelte+++ b/src/routes/downloads/+page.svelte@@ -29,7 +29,7 @@const queued: GenericDownloadItem[] = [];const finished: GenericDownloadItem[] = [];for (const d of genericList) {- if (d.status === "downloading") active.push(d);+ if (d.status === "downloading" || d.status === "seeding") active.push(d);else if (d.status === "paused") paused.push(d);else if (d.status === "queued") queued.push(d);else finished.push(d);@@ -214,6 +214,29 @@<path d="M18 6L6 18M6 6l12 12" /></svg></button>+ {:else if item.status === "seeding"}+ {#if item.filePath}+ <button+ class="action-icon-btn"+ onclick={() => revealFile(item.filePath!)}+ aria-label={$t('downloads.open_folder')}+ title={$t('downloads.open_folder')}+ >+ <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">+ <path d="M22 19a2 2 0 01-2 2H4a2 2 0 01-2-2V5a2 2 0 012-2h5l2 3h9a2 2 0 012 2z" />+ </svg>+ </button>+ {/if}+ <button+ class="action-icon-btn"+ onclick={() => removeItem(item.id)}+ aria-label={$t('downloads.stop')}+ title={$t('downloads.stop')}+ >+ <svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor">+ <rect x="6" y="6" width="12" height="12" />+ </svg>+ </button>{:else if item.status === "paused"}<buttonclass="action-icon-btn"@@ -323,6 +346,17 @@{/if}</div>{/if}+ {:else if item.status === "seeding"}+ <span class="item-detail">{item.platform.charAt(0).toUpperCase() + item.platform.slice(1)}</span>+ <div class="item-stats">+ {#if item.totalBytes}+ <span>{formatBytes(item.totalBytes)}</span>+ <span class="stats-sep">·</span>+ {/if}+ {#if item.speed > 0}+ <span>{formatSpeed(item.speed)}</span>+ {/if}+ </div>{:else if item.status === "paused"}<span class="item-detail">{item.platform.charAt(0).toUpperCase() + item.platform.slice(1)}</span>{#if item.downloadedBytes > 0}@@ -605,6 +639,11 @@color: var(--on-accent);}+ .item-status[data-status="seeding"] {+ background: var(--green);+ color: var(--on-success);+ }+.item-status[data-status="complete"] {background: var(--green);color: var(--on-success);@@ -672,6 +711,10 @@background: var(--blue);}+ .progress-fill[data-status="seeding"] {+ background: var(--green);+ }+.progress-fill[data-status="complete"] {background: var(--green);}diff --git a/src/routes/hotmart/+page.svelte b/src/routes/hotmart/+page.svelteindex c16d41df..3c7ef62f 100644--- a/src/routes/hotmart/+page.svelte+++ b/src/routes/hotmart/+page.svelte@@ -139,7 +139,7 @@const item = downloads.get(courseId);if (!item) return "idle";const s = item.status;- if (s === "queued" || s === "paused") return "downloading";+ if (s === "queued" || s === "paused" || s === "seeding") return "downloading";return s;}diff --git a/src/routes/udemy/+page.svelte b/src/routes/udemy/+page.svelteindex f2d3b738..b2c383fe 100644--- a/src/routes/udemy/+page.svelte+++ b/src/routes/udemy/+page.svelte@@ -177,7 +177,7 @@const item = downloads.get(courseId);if (!item) return "idle";const s = item.status;- if (s === "queued" || s === "paused") return "downloading";+ if (s === "queued" || s === "paused" || s === "seeding") return "downloading";return s;}