Browse Source

Merge pull request #3080 from fuzeman/feature/dev_rtorrent

[rtorrent] fixed how torrent status is determined
pull/3096/head
Joel Kåberg 11 years ago
parent
commit
8c934c1ca8
  1. 10
      couchpotato/core/downloaders/rtorrent_.py

10
couchpotato/core/downloaders/rtorrent_.py

@ -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.')

Loading…
Cancel
Save