From 4fee4b492944bd8a45634380961bfadd3e28c921 Mon Sep 17 00:00:00 2001 From: bobokun Date: Wed, 7 Dec 2022 08:32:34 -0500 Subject: [PATCH] minor bug fix in torrent tagging --- modules/config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/config.py b/modules/config.py index a47a31c..0f86b60 100755 --- a/modules/config.py +++ b/modules/config.py @@ -600,7 +600,11 @@ class Config: ) return tracker if tracker["url"]: - default_tag = tracker["url"].split(os.sep)[2].split(":")[0] + logger.trace(f"tracker url: {tracker['url']}") + if tracker_other_tag: + default_tag = tracker_other_tag + else: + default_tag = tracker["url"].split(os.sep)[2].split(":")[0] tracker["tag"] = self.util.check_for_attribute( self.data, "tag", parent="tracker", subparent=default_tag, default=default_tag, var_type="list" )