Browse Source

Added files for rTorrent

pull/2269/head
Dean Gardiner 12 years ago
committed by mano3m
parent
commit
25f0462c15
  1. 7
      couchpotato/core/downloaders/rtorrent/main.py

7
couchpotato/core/downloaders/rtorrent/main.py

@ -154,6 +154,10 @@ class rTorrent(Downloader):
statuses = StatusList(self)
for item in torrents:
torrent_files = []
for file_item in item.get_files():
torrent_files.append(os.path.join(item.directory, file_item.path))
status = 'busy'
if item.complete:
if item.active:
@ -168,7 +172,8 @@ class rTorrent(Downloader):
'seed_ratio': item.ratio,
'original_status': item.state,
'timeleft': str(timedelta(seconds = float(item.left_bytes) / item.down_rate)) if item.down_rate > 0 else -1,
'folder': ss(item.directory)
'folder': ss(item.directory),
'files': ss('|'.join(torrent_files))
})
return statuses

Loading…
Cancel
Save