diff --git a/sickbeard/config.py b/sickbeard/config.py index ff3afbd7..b8e28814 100644 --- a/sickbeard/config.py +++ b/sickbeard/config.py @@ -166,6 +166,7 @@ def change_DAILYSEARCH_FREQUENCY(freq): def change_BACKLOG_FREQUENCY(freq): sickbeard.BACKLOG_FREQUENCY = to_int(freq, default=sickbeard.DEFAULT_BACKLOG_FREQUENCY) + sickbeard.MIN_BACKLOG_FREQUENCY = sickbeard.get_backlog_cycle_time() if sickbeard.BACKLOG_FREQUENCY < sickbeard.MIN_BACKLOG_FREQUENCY: sickbeard.BACKLOG_FREQUENCY = sickbeard.MIN_BACKLOG_FREQUENCY diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 1ad1f776..83e833bd 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -1633,10 +1633,10 @@ class ConfigSearch(MainHandler): if not config.change_TORRENT_DIR(torrent_dir): results += ["Unable to create directory " + os.path.normpath(torrent_dir) + ", dir not changed."] - sickbeard.BACKLOG_DAYS = config.to_int(backlog_days, default=7) - config.change_DAILYSEARCH_FREQUENCY(dailysearch_frequency) + config.change_BACKLOG_FREQUENCY(backlog_frequency) + sickbeard.BACKLOG_DAYS = config.to_int(backlog_days, default=7) sickbeard.USE_NZBS = config.checkbox_to_value(use_nzbs) sickbeard.USE_TORRENTS = config.checkbox_to_value(use_torrents)