Transmission, add folder name to download dir

This commit is contained in:
Ruud
2012-11-11 21:47:02 +01:00
parent 62a5909856
commit 5a1f05df8e
@@ -30,9 +30,10 @@ class Transmission(Downloader):
return False
# Set parameters for Transmission
folder_name = self.createFileName(data, filedata, movie)[:-len(data.get('type')) - 1]
params = {
'paused': self.conf('paused', default = 0),
'download-dir': self.conf('directory', default = '').rstrip(os.path.sep)
'download-dir': os.path.join(self.conf('directory', default = ''), folder_name).rstrip(os.path.sep)
}
torrent_params = {