This commit is contained in:
Ruud
2012-09-02 16:19:55 +02:00
parent 9590f2e43e
commit 6b7d29bae1
2 changed files with 3 additions and 4 deletions
+3 -3
View File
@@ -23,7 +23,7 @@ class Searcher(Plugin):
in_progress = False in_progress = False
def __init__(self): def __init__(self):
addEvent('searcher.all', self.all_movies) addEvent('searcher.all', self.allMovies)
addEvent('searcher.single', self.single) addEvent('searcher.single', self.single)
addEvent('searcher.correct_movie', self.correctMovie) addEvent('searcher.correct_movie', self.correctMovie)
addEvent('searcher.download', self.download) addEvent('searcher.download', self.download)
@@ -37,11 +37,11 @@ class Searcher(Plugin):
}) })
# Schedule cronjob # Schedule cronjob
fireEvent('schedule.cron', 'searcher.all', self.all_movies, day = self.conf('cron_day'), hour = self.conf('cron_hour'), minute = self.conf('cron_minute')) fireEvent('schedule.cron', 'searcher.all', self.allMovies, day = self.conf('cron_day'), hour = self.conf('cron_hour'), minute = self.conf('cron_minute'))
fireEvent('schedule.interval', 'searcher.check_snatched', self.checkSnatched, minutes = self.conf('run_every')) fireEvent('schedule.interval', 'searcher.check_snatched', self.checkSnatched, minutes = self.conf('run_every'))
def all_movies(self): def allMovies(self):
if self.in_progress: if self.in_progress:
log.info('Search already in progress') log.info('Search already in progress')
@@ -1,4 +1,3 @@
from bs4 import BeautifulSoup
from couchpotato.core.event import fireEvent from couchpotato.core.event import fireEvent
from couchpotato.core.helpers.encoding import tryUrlencode from couchpotato.core.helpers.encoding import tryUrlencode
from couchpotato.core.helpers.variable import getTitle, tryInt, mergeDicts from couchpotato.core.helpers.variable import getTitle, tryInt, mergeDicts