From eba5cbb8039d4766daaa51ed4e16f867af3505ac Mon Sep 17 00:00:00 2001 From: Vladimir Golovnev Date: Mon, 8 Jul 2024 10:08:28 +0300 Subject: [PATCH] WebUI: Correctly apply changed "save path" of RSS rules PR #21030. Closes #20141. --- src/webui/www/private/views/rssDownloader.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/webui/www/private/views/rssDownloader.html b/src/webui/www/private/views/rssDownloader.html index 280de7f18..a1888bb15 100644 --- a/src/webui/www/private/views/rssDownloader.html +++ b/src/webui/www/private/views/rssDownloader.html @@ -592,6 +592,9 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also rulesList[rule].torrentParams.save_path = $("saveToText").value; rulesList[rule].torrentParams.use_auto_tmm = false; } + else { + rulesList[rule].torrentParams.save_path = ""; + } switch ($("addStoppedCombobox").value) { case "default": @@ -742,12 +745,12 @@ Supports the formats: S01E01, 1x1, 2017.12.31 and 31.12.2017 (Date formats also $("lastMatchText").textContent = "QBT_TR(Last Match: Unknown)QBT_TR[CONTEXT=AutomatedRssDownloader]"; } - if (rulesList[ruleName].torrentParams.stopped === null) + if ((rulesList[ruleName].torrentParams.stopped === undefined) || (rulesList[ruleName].torrentParams.stopped === null)) $("addStoppedCombobox").value = "default"; else $("addStoppedCombobox").value = rulesList[ruleName].torrentParams.stopped ? "always" : "never"; - if (rulesList[ruleName].torrentParams.content_layout === null) + if ((rulesList[ruleName].torrentParams.content_layout === undefined) || (rulesList[ruleName].torrentParams.content_layout === null)) $("contentLayoutCombobox").value = "Default"; else $("contentLayoutCombobox").value = rulesList[ruleName].torrentParams.content_layout; -- 2.11.4.GIT