From d22796d398fdda67c0c2222632e5c23da28b8690 Mon Sep 17 00:00:00 2001 From: bobokun Date: Tue, 28 Dec 2021 09:24:21 -0500 Subject: [PATCH] migration of tags to tracker bug fix --- config/config.yml.sample | 6 +++--- modules/config.py | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/config/config.yml.sample b/config/config.yml.sample index 993cd98..29e6152 100644 --- a/config/config.yml.sample +++ b/config/config.yml.sample @@ -22,9 +22,9 @@ directory: # Category & Path Parameters cat: - # : # Path of your save directory. Can be a keyword or full 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: \ No newline at end of file diff --git a/modules/config.py b/modules/config.py index 475475e..d8eac5a 100644 --- a/modules/config.py +++ b/modules/config.py @@ -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")