Don't need makedir in Transmission
This commit is contained in:
1 parent
40aeca0740
commit
161e0de8d5
1 file changed
+4
-7
@@ -36,12 +36,7 @@ class Transmission(Downloader):
|
|||||||
|
|
||||||
if len(self.conf('directory', default = '')) > 0:
|
if len(self.conf('directory', default = '')) > 0:
|
||||||
folder_name = self.createFileName(data, filedata, movie)[:-len(data.get('type')) - 1]
|
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)
|
params['download-dir'] = 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['download-dir'] = folder_path
|
|
||||||
|
|
||||||
torrent_params = {}
|
torrent_params = {}
|
||||||
if self.conf('ratio'):
|
if self.conf('ratio'):
|
||||||
@@ -93,11 +88,13 @@ class Transmission(Downloader):
|
|||||||
'fields': ['id', 'name', 'hashString', 'percentDone', 'status', 'eta', 'isFinished', 'downloadDir', 'uploadRatio']
|
'fields': ['id', 'name', 'hashString', 'percentDone', 'status', 'eta', 'isFinished', 'downloadDir', 'uploadRatio']
|
||||||
}
|
}
|
||||||
queue = trpc.get_alltorrents(return_params)
|
queue = trpc.get_alltorrents(return_params)
|
||||||
|
|
||||||
except Exception, err:
|
except Exception, err:
|
||||||
log.error('Failed getting queue: %s', err)
|
log.error('Failed getting queue: %s', err)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if not queue:
|
||||||
|
return []
|
||||||
|
|
||||||
statuses = StatusList(self)
|
statuses = StatusList(self)
|
||||||
|
|
||||||
# Get torrents status
|
# Get torrents status
|
||||||
|
|||||||
Reference in new issue
Block a user