minor bug fix in torrent tagging

This commit is contained in:
bobokun 2022-12-07 08:32:34 -05:00 committed by bobokun
parent 763c0e5ebb
commit 4fee4b4929

View file

@ -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"
)