migration of tags to tracker bug fix

This commit is contained in:
bobokun 2021-12-28 09:24:21 -05:00
parent 6248514aa3
commit d22796d398
No known key found for this signature in database
GPG key ID: 9665BA6CF5DC2671
2 changed files with 4 additions and 5 deletions

View file

@ -22,9 +22,9 @@ directory:
# Category & Path Parameters
cat:
# <Category Name> : <save_path> # Path of your save directory. Can be a keyword or full path
# <Category Name> : <save_path> # Path of your save directory.
movies: "/data/torrents/Movies"
tv: "TV"
tv: "/data/torrents/TV"
# Tag Parameters
tracker:
@ -174,6 +174,6 @@ webhooks:
tag_nohardlinks: notifiarr
empty_recyclebin: notifiarr
#BHD Integration used for checking unregistered torrents
# BHD Integration used for checking unregistered torrents
bhd:
apikey:

View file

@ -35,8 +35,7 @@ class Config:
new_config, _, _ = yaml.util.load_yaml_guess_indent(open(self.config_path, encoding="utf-8"))
if "settings" not in new_config: new_config["settings"] = {}
if "cat" not in new_config: new_config["cat"] = {}
if "tracker" not in new_config: new_config["tracker"] = {}
if "tracker" not in new_config and "tags" not in new_config: new_config["tracker"] = {}
if "qbt" in new_config: new_config["qbt"] = new_config.pop("qbt")
if "settings" in new_config: new_config["settings"] = new_config.pop("settings")
if "directory" in new_config: new_config["directory"] = new_config.pop("directory")