You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
717 B
32 lines
717 B
from couchpotato.core.event import addEvent
|
|
from couchpotato.core.logger import CPLog
|
|
from couchpotato.core.plugins.base import Plugin
|
|
|
|
log = CPLog(__name__)
|
|
|
|
|
|
class UserscriptBase(Plugin):
|
|
|
|
version = 1
|
|
|
|
includes = []
|
|
excludes = []
|
|
|
|
def __init__(self):
|
|
addEvent('userscript.add_via_url', self.addViaUrl)
|
|
addEvent('userscript.get_includes', self.getInclude)
|
|
addEvent('userscript.get_excludes', self.getExclude)
|
|
|
|
addEvent('userscript.get_version', self.getVersion)
|
|
|
|
def addViaUrl(self):
|
|
pass
|
|
|
|
def getInclude(self):
|
|
return self.includes
|
|
|
|
def getExclude(self):
|
|
return self.excludes
|
|
|
|
def getVersion(self):
|
|
return self.version
|
|
|