From 28aec747c88c8f5f0f9819e119a2d5d73c756304 Mon Sep 17 00:00:00 2001 From: Jon Date: Sun, 7 Mar 2021 10:51:44 -0500 Subject: [PATCH] Update cross_seed bug causing double recheck --- qbit_manage.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qbit_manage.py b/qbit_manage.py index 976d9b2..9d32eab 100644 --- a/qbit_manage.py +++ b/qbit_manage.py @@ -167,11 +167,11 @@ def get_torrent_info(t_list): return torrentdict # Function used to recheck paused torrents sorted by size and resume torrents that are completed -def recheck(torrentdict=None): +def recheck(): if args.cross_seed == 'cross_seed' or args.manage == 'manage' or args.recheck == 'recheck': #sort by size and paused torrent_sorted_list = client.torrents.info(status_filter='paused',sort='size') - if torrentdict is None: torrentdict = get_torrent_info(client.torrents.info(sort='added_on',reverse=True)) + torrentdict = get_torrent_info(client.torrents.info(sort='added_on',reverse=True)) for torrent in torrent_sorted_list: new_tag = [get_tags(x.url) for x in torrent.trackers if x.url.startswith('http')] if torrent.tags == '': torrent.add_tags(tags=new_tag) @@ -242,7 +242,6 @@ def cross_seed(): logger.dryrun(f'{t_name} not found in torrents.') else: logger.warning(f'{t_name} not found in torrents.') - recheck(torrentdict) numcategory = Counter(categories) if args.dry_run == 'dry_run': for c in numcategory: