use right variable for pause

fixes #2049
This commit is contained in:
mano3m
2013-08-21 20:49:01 +02:00
parent 695cdea447
commit 70bc2a6656
2 changed files with 4 additions and 4 deletions
@@ -129,9 +129,9 @@ class Transmission(Downloader):
def pause(self, item, pause = True):
if pause:
return self.trpc.stop_torrent(item['hashString'])
return self.trpc.stop_torrent(item['id'])
else:
return self.trpc.start_torrent(item['hashString'])
return self.trpc.start_torrent(item['id'])
def removeFailed(self, item):
log.info('%s failed downloading, deleting...', item['name'])
@@ -149,10 +149,10 @@ class uTorrent(Downloader):
return statuses
def pause(self, download_info, pause = True):
def pause(self, item, pause = True):
if not self.connect():
return False
return self.utorrent_api.pause_torrent(download_info['id'], pause)
return self.utorrent_api.pause_torrent(item['id'], pause)
def removeFailed(self, item):
log.info('%s failed downloading, deleting...', item['name'])