From 382a9af45f89ba5ebb83da04cee1fe1fa0983304 Mon Sep 17 00:00:00 2001 From: bobokun Date: Fri, 31 Mar 2023 17:40:23 -0400 Subject: [PATCH] assign share limits before tagging nohl --- modules/qbittorrent.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/qbittorrent.py b/modules/qbittorrent.py index b0c3ed2..421f26d 100755 --- a/modules/qbittorrent.py +++ b/modules/qbittorrent.py @@ -537,9 +537,6 @@ class Qbt: # Checks for any hardlinks and not already tagged # Cleans up previously tagged noHL torrents that no longer have hardlinks if has_nohardlinks: - # Will only tag new torrents that don't have noHL tag - if "noHL" not in torrent.tags: - add_tag_no_hl(add_tag=True) tracker = self.config.get_tags(torrent.trackers) # Determine min_seeding_time. # If only tracker setting is set, use tracker's min_seeding_time @@ -577,6 +574,11 @@ class Qbt: max_seeding_time = tracker["max_seeding_time"] elif nohardlinks[category]["max_seeding_time"]: max_seeding_time = nohardlinks[category]["max_seeding_time"] + + # Will only tag new torrents that don't have noHL tag + if "noHL" not in torrent.tags: + add_tag_no_hl(add_tag=True) + # Deletes torrent with data if cleanup is set to true and meets the ratio/seeding requirements if nohardlinks[category]["cleanup"] and len(nohardlinks[category]) > 0: tor_reach_seed_limit = self.has_reached_seed_limit(