Permalink
Browse files

Fix the last commit

  • Loading branch information...
midgetspy committed Oct 27, 2010
1 parent f4b1363 commit df1f57d7c49068f2d375b7a1365a295e7cab1424
Showing with 7 additions and 7 deletions.
  1. +6 −1 sickbeard/__init__.py
  2. +1 −2 sickbeard/config.py
  3. +0 −4 sickbeard/searchBacklog.py
View
@@ -251,6 +251,11 @@ def check_setting_str(config, cfg_name, item_name, def_val, log=True):
return my_val
+def get_backlog_cycle_time():
+ cycletime = sickbeard.SEARCH_FREQUENCY*2+7
+ return min([cycletime, 60])
+
+
def initialize(consoleLogging=True):
with INIT_LOCK:
@@ -428,7 +433,7 @@ def initialize(consoleLogging=True):
runImmediately=True)
backlogSearchScheduler = searchBacklog.BacklogSearchScheduler(searchBacklog.BacklogSearcher(),
- cycleTime=datetime.timedelta(minutes=searchBacklog.get_cycle_time()),
+ cycleTime=datetime.timedelta(minutes=get_backlog_cycle_time()),
threadName="BACKLOG",
runImmediately=False)
backlogSearchScheduler.action.cycleTime = BACKLOG_SEARCH_FREQUENCY
View
@@ -24,7 +24,6 @@
from sickbeard import helpers
from sickbeard import logger
-from sickbeard import searchBacklog
import sickbeard
@@ -121,7 +120,7 @@ def change_SEARCH_FREQUENCY(freq):
sickbeard.SEARCH_FREQUENCY = freq
sickbeard.currentSearchScheduler.cycleTime = datetime.timedelta(minutes=sickbeard.SEARCH_FREQUENCY)
- sickbeard.backlogSearchScheduler.cycleTime = datetime.timedelta(minutes=searchBacklog.get_cycle_time())
+ sickbeard.backlogSearchScheduler.cycleTime = datetime.timedelta(minutes=get_backlog_cycle_time())
def change_BACKLOG_SEARCH_FREQUENCY(freq):
@@ -27,10 +27,6 @@
from sickbeard import ui
from sickbeard.common import *
-def get_cycle_time():
- cycletime = sickbeard.SEARCH_FREQUENCY*2+7
- return min([cycletime, 60])
-
class BacklogSearchScheduler(scheduler.Scheduler):
def forceSearch(self):

0 comments on commit df1f57d

Please sign in to comment.