Added def remove
Allows renamer to request deletion of failed downloads
This commit is contained in:
@@ -24,6 +24,7 @@ class Downloader(Plugin):
|
||||
def __init__(self):
|
||||
addEvent('download', self.download)
|
||||
addEvent('download.status', self.getDownloadStatus)
|
||||
addEvent('download.remove', self.remove)
|
||||
|
||||
def download(self, data = {}, movie = {}, manual = False, filedata = None):
|
||||
pass
|
||||
@@ -31,6 +32,9 @@ class Downloader(Plugin):
|
||||
def getDownloadStatus(self, data = {}, movie = {}):
|
||||
return False
|
||||
|
||||
def remove(self, name = {}, nzo_id = {}):
|
||||
return False
|
||||
|
||||
def createNzbName(self, data, movie):
|
||||
tag = self.cpTag(movie)
|
||||
return '%s%s' % (toSafeString(data.get('name')[:127 - len(tag)]), tag)
|
||||
|
||||
Reference in New Issue
Block a user