Scheduler
NZBmatrix, newznab Scores
This commit is contained in:
1 parent
9524306739
commit
7837adec1d
38 files changed
+856
-219
No files matched your search
@@ -1,3 +1,4 @@
|
||||
from couchpotato.core.event import addEvent, fireEvent
|
||||
from couchpotato.core.logger import CPLog
|
||||
from couchpotato.core.plugins.base import Plugin
|
||||
|
||||
@@ -8,3 +9,11 @@ class Renamer(Plugin):
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
addEvent('renamer.scan', self.scan)
|
||||
addEvent('app.load', self.scan)
|
||||
|
||||
fireEvent('schedule.interval', 'renamer.scan', self.scan, minutes = self.conf('run_every'))
|
||||
|
||||
def scan(self):
|
||||
print 'scan'
|
||||
Reference in new issue
Block a user