Create empty download folder for Transmission. fix #1055

This commit is contained in:
Ruud
2012-12-03 13:58:46 +01:00
parent 9a6cfe3a21
commit 07e2c56095
@@ -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 = {