Merge pull request #3080 from fuzeman/feature/dev_rtorrent

[rtorrent] fixed how torrent status is determined
This commit is contained in:
Joel Kåberg
2014-04-09 14:48:18 +02:00
+2 -8
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.')