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: enhance download item display with ETA and speed metrics during download
Tonho635b0e0f442c
diff --git a/src/routes/downloads/+page.svelte b/src/routes/downloads/+page.svelteindex a90db966..9a1c5714 100644--- a/src/routes/downloads/+page.svelte+++ b/src/routes/downloads/+page.svelte@@ -7,6 +7,7 @@formatBytes,formatSpeed,getEtaI18n,+ getGenericEtaI18n,clearFinished,getFinishedCount,type CourseDownloadItem,@@ -81,7 +82,32 @@</div></div>- <span class="item-detail">{item.platform.charAt(0).toUpperCase() + item.platform.slice(1)}</span>+ {#if item.status === "downloading"}+ <span class="item-detail">{item.platform.charAt(0).toUpperCase() + item.platform.slice(1)}</span>++ <div class="item-stats">+ {#if item.downloadedBytes > 0}+ <span>+ {formatBytes(item.downloadedBytes)}{#if item.totalBytes} / {formatBytes(item.totalBytes)}{/if}+ </span>+ <span class="stats-sep">·</span>+ {/if}+ {#if item.speed > 0}+ <span>{formatSpeed(item.speed)}</span>+ <span class="stats-sep">·</span>+ {/if}+ {#if true}+ {@const eta = getGenericEtaI18n(item)}+ <span>{$t(eta.key, eta.params)}</span>+ {/if}+ </div>+ {:else}+ <span class="item-detail">{item.platform.charAt(0).toUpperCase() + item.platform.slice(1)}</span>+ {/if}++ {#if item.status === "complete" && item.totalBytes}+ <span class="item-detail">{formatBytes(item.totalBytes)}</span>+ {/if}{#if item.status === "error" && item.error}<span class="item-error">{item.error}</span>