mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2024-11-10 17:47:13 +08:00
minor bug fix in torrent tagging
This commit is contained in:
parent
763c0e5ebb
commit
4fee4b4929
1 changed files with 5 additions and 1 deletions
|
@ -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"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue