mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
WebUI: Correctly apply changed "save path" of RSS rules
PR #21030. Closes #20141.
This commit is contained in:
parent
87a202c71e
commit
eba5cbb803
1 changed files with 5 additions and 2 deletions
|
@ -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.save_path = $("saveToText").value;
|
||||||
rulesList[rule].torrentParams.use_auto_tmm = false;
|
rulesList[rule].torrentParams.use_auto_tmm = false;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
rulesList[rule].torrentParams.save_path = "";
|
||||||
|
}
|
||||||
|
|
||||||
switch ($("addStoppedCombobox").value) {
|
switch ($("addStoppedCombobox").value) {
|
||||||
case "default":
|
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]";
|
$("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";
|
$("addStoppedCombobox").value = "default";
|
||||||
else
|
else
|
||||||
$("addStoppedCombobox").value = rulesList[ruleName].torrentParams.stopped ? "always" : "never";
|
$("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";
|
$("contentLayoutCombobox").value = "Default";
|
||||||
else
|
else
|
||||||
$("contentLayoutCombobox").value = rulesList[ruleName].torrentParams.content_layout;
|
$("contentLayoutCombobox").value = rulesList[ruleName].torrentParams.content_layout;
|
||||||
|
|
Loading…
Reference in a new issue