Skip to content

Commit

Permalink
fix: do not include indexers that do not have a required seeding rati…
Browse files Browse the repository at this point in the history
…o in ration check

Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Aug 23, 2023
1 parent 0046bfd commit a77bfeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qbittools/commands/expired.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def __init__(args, logger):

indexer = filter_indexer_by_url(indexers, domain)
if indexer:
if torrent['ratio'] >= indexer['required_seed_ratio'] and torrent['ratio'] != 0:
if torrent['ratio'] >= indexer['required_seed_ratio'] and indexer['required_seed_ratio'] != 0:
logger.info(f"Removing torrent {torrent['name']} ({domain}) with matching indexer {indexer['name']} due to an expired ratio ({round(torrent['ratio'], 2)})")
if not args.dry_run:
torrent.delete(delete_files=False)
Expand Down

0 comments on commit a77bfeb

Please sign in to comment.