From 1cc998bc95e200b44a0e80231b4cfa0c0b566d1f Mon Sep 17 00:00:00 2001 From: Techmunk Date: Sun, 29 Sep 2013 10:38:41 +1000 Subject: [PATCH] Include files for renamer in Deluge downloader. --- couchpotato/core/downloaders/deluge/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/couchpotato/core/downloaders/deluge/main.py b/couchpotato/core/downloaders/deluge/main.py index 580ed7ff..deb1d661 100644 --- a/couchpotato/core/downloaders/deluge/main.py +++ b/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