mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 14:58:47 +00:00
Enhancement: downloading torrents list for deluge (#4436)
This commit is contained in:
parent
6b2a3da7ee
commit
59ed5ed114
4 changed files with 33 additions and 12 deletions
|
@ -402,6 +402,9 @@ export function cleanServiceGroups(groups) {
|
|||
mappings,
|
||||
display,
|
||||
|
||||
// deluge, qbittorrent
|
||||
enableLeechProgress,
|
||||
|
||||
// diskstation
|
||||
volume,
|
||||
|
||||
|
@ -479,9 +482,6 @@ export function cleanServiceGroups(groups) {
|
|||
// proxmox
|
||||
node,
|
||||
|
||||
// qbittorrent
|
||||
enableLeechProgress,
|
||||
|
||||
// speedtest
|
||||
bitratePrecision,
|
||||
|
||||
|
@ -572,6 +572,9 @@ export function cleanServiceGroups(groups) {
|
|||
if (allowScrolling) widget.allowScrolling = allowScrolling;
|
||||
if (refreshInterval) widget.refreshInterval = refreshInterval;
|
||||
}
|
||||
if (["deluge", "qbittorrent"].includes(type)) {
|
||||
if (enableLeechProgress !== undefined) widget.enableLeechProgress = JSON.parse(enableLeechProgress);
|
||||
}
|
||||
if (["opnsense", "pfsense"].includes(type)) {
|
||||
if (wan) widget.wan = wan;
|
||||
}
|
||||
|
@ -674,9 +677,6 @@ export function cleanServiceGroups(groups) {
|
|||
if (type === "spoolman") {
|
||||
if (spoolIds !== undefined) widget.spoolIds = spoolIds;
|
||||
}
|
||||
if (type === "qbittorrent") {
|
||||
if (enableLeechProgress !== undefined) widget.enableLeechProgress = JSON.parse(enableLeechProgress);
|
||||
}
|
||||
return widget;
|
||||
});
|
||||
return cleanedService;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue