From 623f8c9d9598b928073de288f55f19c5791496ef Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 30 Aug 2011 13:42:46 +0200 Subject: [PATCH] Searcher on start when debugging --- couchpotato/core/plugins/searcher/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/couchpotato/core/plugins/searcher/main.py b/couchpotato/core/plugins/searcher/main.py index 93d85f35..445f8af3 100644 --- a/couchpotato/core/plugins/searcher/main.py +++ b/couchpotato/core/plugins/searcher/main.py @@ -21,6 +21,9 @@ class Searcher(Plugin): # Schedule cronjob fireEvent('schedule.cron', 'searcher.all', self.all, day = self.conf('cron_day'), hour = self.conf('cron_hour'), minute = self.conf('cron_minute')) + if Env.doDebug(): + addEvent('app.load', self.all) + def all(self): db = get_session()