From 07e2c560956de691a31ea3fbab220b40c5d15f1d Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 3 Dec 2012 13:58:46 +0100 Subject: [PATCH] Create empty download folder for Transmission. fix #1055 --- couchpotato/core/downloaders/transmission/main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/downloaders/transmission/main.py b/couchpotato/core/downloaders/transmission/main.py index 63c4c0e6..22e01c2f 100644 --- a/couchpotato/core/downloaders/transmission/main.py +++ b/couchpotato/core/downloaders/transmission/main.py @@ -31,9 +31,14 @@ class Transmission(Downloader): # Set parameters for Transmission folder_name = self.createFileName(data, filedata, movie)[:-len(data.get('type')) - 1] + folder_path = os.path.join(self.conf('directory', default = ''), folder_name).rstrip(os.path.sep) + + # Create the empty folder to download too + self.makeDir(folder_path) + params = { 'paused': self.conf('paused', default = 0), - 'download-dir': os.path.join(self.conf('directory', default = ''), folder_name).rstrip(os.path.sep) + 'download-dir': folder_path } torrent_params = {