mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-15 16:19:28 +01:00
Fixed typo
This commit is contained in:
@@ -101,7 +101,7 @@
|
||||
|
||||
<fieldset>
|
||||
<legend>Interval</legend>
|
||||
Set an interval to 0 to disable a task.
|
||||
<small>An interval of 0 will disable a task.</small>
|
||||
<div class="row">
|
||||
<label title="Time between two searches for new downloads.">
|
||||
Search Interval
|
||||
|
||||
@@ -143,7 +143,7 @@ def initialize(config_file):
|
||||
logger.error("Could not create cache dir '%s': %s", DATA_DIR, e)
|
||||
|
||||
# Sanity check for search interval. Set it to at least 6 hours
|
||||
if CONFIG.SEARCH_INTERVAL < 360 and CONFIG.SEARCH_INTERVAL != 0:
|
||||
if CONFIG.SEARCH_INTERVAL and CONFIG.SEARCH_INTERVAL < 360:
|
||||
logger.info("Search interval too low. Resetting to 6 hour minimum.")
|
||||
CONFIG.SEARCH_INTERVAL = 360
|
||||
|
||||
|
||||
@@ -1241,7 +1241,7 @@ class WebInterface(object):
|
||||
headphones.CONFIG.add_extra_newznab(extra_newznab)
|
||||
|
||||
# Sanity checking
|
||||
if headphones.CONFIG.SEARCH_INTERVAL < 360 and headphones.config.SEARCH_INTERVAL != 0:
|
||||
if headphones.CONFIG.SEARCH_INTERVAL and headphones.CONFIG.SEARCH_INTERVAL < 360:
|
||||
logger.info("Search interval too low. Resetting to 6 hour minimum")
|
||||
headphones.CONFIG.SEARCH_INTERVAL = 360
|
||||
|
||||
|
||||
Reference in New Issue
Block a user