From ce76ed1bfbbf9413929bed67e70273432e30a9ab Mon Sep 17 00:00:00 2001 From: mircea32000 <36380975+mircea32000@users.noreply.github.com> Date: Mon, 10 Feb 2025 22:45:41 +0200 Subject: [PATCH] i cant figure that shit out so take it out --- src/locales/en/translation.json | 3 ++- .../src/pages/downloads/download-group.tsx | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index c71f263b..ea054f89 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -227,7 +227,8 @@ "seeding": "Seeding", "stop_seeding": "Stop seeding", "resume_seeding": "Resume seeding", - "options": "Manage" + "options": "Manage", + "alldebrid_size_not_supported": "Download info for AllDebrid is not supported yet" }, "settings": { "downloads_path": "Downloads path", diff --git a/src/renderer/src/pages/downloads/download-group.tsx b/src/renderer/src/pages/downloads/download-group.tsx index 86d7a97b..e6ffded4 100644 --- a/src/renderer/src/pages/downloads/download-group.tsx +++ b/src/renderer/src/pages/downloads/download-group.tsx @@ -112,6 +112,15 @@ export function DownloadGroup({ ); } + if (download.downloader === Downloader.AllDebrid) { + return ( + <> +

{progress}

+

{t("alldebrid_size_not_supported")}

+ + ); + } + return ( <>

{progress}

@@ -154,6 +163,15 @@ export function DownloadGroup({ } if (download.status === "active") { + if (download.downloader === Downloader.AllDebrid) { + return ( + <> +

{formatDownloadProgress(download.progress)}

+

{t("alldebrid_size_not_supported")}

+ + ); + } + return ( <>

{formatDownloadProgress(download.progress)}