From 39190495be8ef367acba8036d485d5bc81634556 Mon Sep 17 00:00:00 2001 From: mano3m Date: Sun, 29 Sep 2013 10:42:23 +0200 Subject: [PATCH] Correct path for one file torrent --- couchpotato/core/downloaders/deluge/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/downloaders/deluge/main.py b/couchpotato/core/downloaders/deluge/main.py index deb1d661..3e64b9a6 100644 --- a/couchpotato/core/downloaders/deluge/main.py +++ b/couchpotato/core/downloaders/deluge/main.py @@ -131,7 +131,7 @@ class Deluge(Downloader): 'original_status': item['state'], 'seed_ratio': item['ratio'], 'timeleft': str(timedelta(seconds = item['eta'])), - 'folder': ss(os.path.join(download_dir, item['name'])), + 'folder': ss(download_dir) if len(torrent_files) == 1 else ss(os.path.join(download_dir, item['name'])), 'files': ss('|'.join(torrent_files)), })