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