From 25f0462c15f28faa276648e8510dffa630353221 Mon Sep 17 00:00:00 2001 From: Dean Gardiner Date: Sun, 29 Sep 2013 23:04:46 +1300 Subject: [PATCH] Added files for rTorrent --- couchpotato/core/downloaders/rtorrent/main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/downloaders/rtorrent/main.py b/couchpotato/core/downloaders/rtorrent/main.py index c8c323f9..37093529 100755 --- a/couchpotato/core/downloaders/rtorrent/main.py +++ b/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