Browse Source

Include files for renamer in Deluge downloader.

pull/2269/head
Techmunk 12 years ago
committed by mano3m
parent
commit
1cc998bc95
  1. 5
      couchpotato/core/downloaders/deluge/main.py

5
couchpotato/core/downloaders/deluge/main.py

@ -120,6 +120,10 @@ class Deluge(Downloader):
if item['move_on_completed']:
download_dir = item['move_completed_path']
torrent_files = []
for file_item in item['files']:
torrent_files.append(os.path.join(download_dir, file_item['path']))
statuses.append({
'id': item['hash'],
'name': item['name'],
@ -128,6 +132,7 @@ class Deluge(Downloader):
'seed_ratio': item['ratio'],
'timeleft': str(timedelta(seconds = item['eta'])),
'folder': ss(os.path.join(download_dir, item['name'])),
'files': ss('|'.join(torrent_files)),
})
return statuses

Loading…
Cancel
Save