minor fix

This commit is contained in:
bobokun 2022-05-20 18:15:20 -04:00
parent 428bb54410
commit d1947e44dc
No known key found for this signature in database
GPG key ID: 9665BA6CF5DC2671

View file

@ -769,7 +769,7 @@ class Qbt:
fullpath = os.path.join(torrent.save_path, file.name)
# Replace fullpath with \\ if qbm is runnig in docker (linux) but qbt is on windows
fullpath = fullpath.replace(r'/', '\\') if ':\\' in fullpath else fullpath
torrent_files.append(os.path.join(torrent.save_path, file.name))
torrent_files.append(fullpath)
orphaned_files = set(root_files) - set(torrent_files)
orphaned_files = sorted(orphaned_files)