Added files for rTorrent
This commit is contained in:
1 parent
caded0694c
commit
25f0462c15
1 file changed
+6
-1
@@ -154,6 +154,10 @@ class rTorrent(Downloader):
|
|||||||
statuses = StatusList(self)
|
statuses = StatusList(self)
|
||||||
|
|
||||||
for item in torrents:
|
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'
|
status = 'busy'
|
||||||
if item.complete:
|
if item.complete:
|
||||||
if item.active:
|
if item.active:
|
||||||
@@ -168,7 +172,8 @@ class rTorrent(Downloader):
|
|||||||
'seed_ratio': item.ratio,
|
'seed_ratio': item.ratio,
|
||||||
'original_status': item.state,
|
'original_status': item.state,
|
||||||
'timeleft': str(timedelta(seconds = float(item.left_bytes) / item.down_rate)) if item.down_rate > 0 else -1,
|
'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
|
return statuses
|
||||||
|
|||||||
Reference in new issue
Block a user