NZBProvider default events
This commit is contained in:
1 parent
57f32922cf
commit
93436c027a
6 files changed
+10
-18
No files matched your search
@@ -1,3 +1,4 @@
|
||||
from couchpotato.core.event import addEvent
|
||||
from couchpotato.core.logger import CPLog
|
||||
from couchpotato.core.plugins.base import Plugin
|
||||
from couchpotato.environment import Env
|
||||
@@ -130,6 +131,14 @@ class NZBProvider(YarrProvider):
|
||||
|
||||
time_between_searches = 10 # Seconds
|
||||
|
||||
def __init__(self):
|
||||
addEvent('provider.nzb.search', self.search)
|
||||
addEvent('provider.yarr.search', self.search)
|
||||
|
||||
addEvent('provider.nzb.feed', self.feed)
|
||||
def search(self, movie, quality):
|
||||
return []
|
||||
|
||||
def calculateAge(self, unix):
|
||||
return int(time.time() - unix) / 24 / 60 / 60
|
||||
|
||||
|
||||
Reference in new issue
Block a user