Make sure Transmission folders are 'normpath'-ed
This commit is contained in:
1 parent
639d635913
commit
4bfb5c6397
1 file changed
+2
-2
@@ -105,7 +105,7 @@ class Transmission(Downloader):
|
|||||||
|
|
||||||
torrent_files = []
|
torrent_files = []
|
||||||
for file_item in torrent['files']:
|
for file_item in torrent['files']:
|
||||||
torrent_files.append(os.path.join(torrent['downloadDir'], file_item['name']))
|
torrent_files.append(os.path.normpath(os.path.join(ss(torrent['downloadDir']), ss(file_item['name']))))
|
||||||
|
|
||||||
status = 'busy'
|
status = 'busy'
|
||||||
if torrent['isStalled'] and self.conf('stalled_as_failed'):
|
if torrent['isStalled'] and self.conf('stalled_as_failed'):
|
||||||
@@ -122,7 +122,7 @@ class Transmission(Downloader):
|
|||||||
'original_status': torrent['status'],
|
'original_status': torrent['status'],
|
||||||
'seed_ratio': torrent['uploadRatio'],
|
'seed_ratio': torrent['uploadRatio'],
|
||||||
'timeleft': str(timedelta(seconds = torrent['eta'])),
|
'timeleft': str(timedelta(seconds = torrent['eta'])),
|
||||||
'folder': ss(torrent['downloadDir']) if len(torrent_files) == 1 else ss(os.path.join(torrent['downloadDir'], torrent['name'])),
|
'folder': os.path.normpath(ss(torrent['downloadDir'])) if len(torrent_files) == 1 else os.path.normpath(os.path.join(ss(torrent['downloadDir']), ss(torrent['name']))),
|
||||||
'files': ss('|'.join(torrent_files))
|
'files': ss('|'.join(torrent_files))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user