diff --git a/docs/widgets/services/qbittorrent.md b/docs/widgets/services/qbittorrent.md
index 103430deb..fe9ec3b9d 100644
--- a/docs/widgets/services/qbittorrent.md
+++ b/docs/widgets/services/qbittorrent.md
@@ -16,4 +16,5 @@ widget:
username: username
password: password
enableLeechProgress: true # optional, defaults to false
+ enableLeechSize: true # optional, defaults to false
```
diff --git a/src/components/widgets/queue/queueEntry.jsx b/src/components/widgets/queue/queueEntry.jsx
index 9247261f8..1f277865a 100644
--- a/src/components/widgets/queue/queueEntry.jsx
+++ b/src/components/widgets/queue/queueEntry.jsx
@@ -1,4 +1,4 @@
-export default function QueueEntry({ title, activity, timeLeft, progress }) {
+export default function QueueEntry({ title, activity, timeLeft, progress, size }) {
return (
+ {size && `${size} - `}
{timeLeft ? `${activity} - ${timeLeft}` : activity}
diff --git a/src/utils/config/service-helpers.js b/src/utils/config/service-helpers.js
index 23cb3be1b..1fcdb975d 100644
--- a/src/utils/config/service-helpers.js
+++ b/src/utils/config/service-helpers.js
@@ -284,6 +284,7 @@ export function cleanServiceGroups(groups) {
// deluge, qbittorrent
enableLeechProgress,
+ enableLeechSize,
// diskstation
volume,
@@ -493,6 +494,7 @@ export function cleanServiceGroups(groups) {
}
if (["deluge", "qbittorrent"].includes(type)) {
if (enableLeechProgress !== undefined) widget.enableLeechProgress = JSON.parse(enableLeechProgress);
+ if (enableLeechSize !== undefined) widget.enableLeechSize = JSON.parse(enableLeechSize);
}
if (["opnsense", "pfsense"].includes(type)) {
if (wan) widget.wan = wan;
diff --git a/src/widgets/qbittorrent/component.jsx b/src/widgets/qbittorrent/component.jsx
index bd201fd51..c8f9f6ead 100644
--- a/src/widgets/qbittorrent/component.jsx
+++ b/src/widgets/qbittorrent/component.jsx
@@ -80,6 +80,11 @@ export default function Component({ service }) {
timeLeft={t("common.duration", { value: queueEntry.eta })}
title={queueEntry.name}
activity={queueEntry.state}
+ size={
+ widget?.enableLeechSize
+ ? t("common.bbytes", { value: queueEntry.size, maximumFractionDigits: 1 })
+ : undefined
+ }
key={`${queueEntry.name}-${queueEntry.amount_left}`}
/>
))}