Fix transmission #2168

This commit is contained in:
mano3m
2013-09-28 13:35:26 +02:00
parent 4a5c878c36
commit 871aecb689

View File

@@ -136,11 +136,11 @@ class Transmission(Downloader):
def removeFailed(self, item):
log.info('%s failed downloading, deleting...', item['name'])
return self.trpc.remove_torrent(item['hashString'], True)
return self.trpc.remove_torrent(item['id'], True)
def processComplete(self, item, delete_files = False):
log.debug('Requesting Transmission to remove the torrent %s%s.', (item['name'], ' and cleanup the downloaded files' if delete_files else ''))
return self.trpc.remove_torrent(item['hashString'], delete_files)
return self.trpc.remove_torrent(item['id'], delete_files)
class TransmissionRPC(object):