Skip to content

Commit

Permalink
Skip single file check when not using single files
Browse files Browse the repository at this point in the history
fixes #103
  • Loading branch information
Audionut committed Oct 26, 2024
1 parent f1b5616 commit 2541ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2541ccb

Please sign in to comment.