From 21dc3245f1ca58811a8021dff9c94cfc97d08c72 Mon Sep 17 00:00:00 2001 From: bobokun Date: Wed, 2 Feb 2022 08:24:18 -0500 Subject: [PATCH] bug fix: torrents not deleting when should --- modules/qbittorrent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/qbittorrent.py b/modules/qbittorrent.py index dfb3630..17b2ca9 100644 --- a/modules/qbittorrent.py +++ b/modules/qbittorrent.py @@ -405,6 +405,7 @@ class Qbt: body += print_line(util.insert_space('Deleted .torrent but NOT content files.', 8), loglevel) attr["body"] = "\n".join(body) self.config.send_notifications(attr) + self.torrentinfo[t_name]['count'] -= 1 if num_tags >= 1: print_line(f"{'Did not Tag/set' if dry_run else 'Tag/set'} share limits for {num_tags} .torrent{'s.' if num_tags > 1 else '.'}", loglevel) else: @@ -483,6 +484,7 @@ class Qbt: del_tor_cont += 1 attr["body"] = "\n".join(body) self.config.send_notifications(attr) + self.torrentinfo[t_name]['count'] -= 1 if cfg_rem_unregistered or cfg_tag_error: if cfg_tag_error: separator("Tagging Torrents with Tracker Errors", space=False, border=False)