Skip to content

Commit

Permalink
WebUI: Correctly apply changed "save path" of RSS rules
Browse files Browse the repository at this point in the history
  • Loading branch information
glassez committed Jul 8, 2024
1 parent b0ac763 commit bd01b7c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/webui/www/private/views/rssDownloader.html
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,9 @@
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":
Expand Down Expand Up @@ -742,12 +745,12 @@
$("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;
Expand Down

0 comments on commit bd01b7c

Please sign in to comment.