From 2541ccb970e3fb90814946c5cbc162557d77a79f Mon Sep 17 00:00:00 2001 From: Audionut Date: Sat, 26 Oct 2024 15:40:02 +1000 Subject: [PATCH] Skip single file check when not using single files fixes https://github.com/Audionut/Upload-Assistant/issues/103 --- src/clients.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clients.py b/src/clients.py index 374bab9c..9357142d 100644 --- a/src/clients.py +++ b/src/clients.py @@ -134,7 +134,7 @@ async def is_valid_torrent(self, meta, torrent_path, torrenthash, torrent_client console.log(f"Torrent is valid based on disc/basename or keep-folder: {valid}") # If one file, check for folder - if len(torrent.files) == len(meta['filelist']) == 1: + elif len(torrent.files) == len(meta['filelist']) == 1: if os.path.basename(torrent.files[0]) == os.path.basename(meta['filelist'][0]): if str(torrent.files[0]) == os.path.basename(torrent.files[0]): valid = True