diff --git a/src/webui/www/private/views/rssDownloader.html b/src/webui/www/private/views/rssDownloader.html index f75e53280..f7418294e 100644 --- a/src/webui/www/private/views/rssDownloader.html +++ b/src/webui/www/private/views/rssDownloader.html @@ -597,6 +597,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 ($('addPausedCombobox').value) { case 'default': @@ -746,13 +749,13 @@ 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) - $('addPausedCombobox').value = 'default'; + if ((rulesList[ruleName].torrentParams.stopped === undefined) || (rulesList[ruleName].torrentParams.stopped === null)) + $("addStoppedCombobox").value = "default"; else $('addPausedCombobox').value = rulesList[ruleName].torrentParams.stopped ? 'always' : 'never'; - if (rulesList[ruleName].torrentParams.content_layout === null) - $('contentLayoutCombobox').value = 'Default'; + if ((rulesList[ruleName].torrentParams.content_layout === undefined) || (rulesList[ruleName].torrentParams.content_layout === null)) + $("contentLayoutCombobox").value = "Default"; else $('contentLayoutCombobox').value = rulesList[ruleName].torrentParams.content_layout;