[rtorrent] fixed how torrent status is determined

This commit is contained in:
Dean Gardiner
2014-04-05 21:13:28 +13:00
parent 685210aee3
commit f1ea8fa693

View File

@@ -154,19 +154,13 @@ class rTorrent(DownloaderBase):
return False
def getTorrentStatus(self, torrent):
if torrent.hashing or torrent.hash_checking or torrent.message:
return 'busy'
if not torrent.complete:
return 'busy'
if not torrent.open:
return 'completed'
if torrent.state and torrent.active:
if torrent.open:
return 'seeding'
return 'busy'
return 'completed'
def getAllDownloadStatus(self, ids):
log.debug('Checking rTorrent download status.')