From bb79ff1a6d8e5235eddb0085ff34a88f16b6bdeb Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Sun, 21 Feb 2021 12:13:43 -0500 Subject: [PATCH] fixed settings error --- config/config.yml.template | 2 +- modules/config.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/config.yml.template b/config/config.yml.template index 9191a018..f8b4314a 100644 --- a/config/config.yml.template +++ b/config/config.yml.template @@ -8,8 +8,8 @@ libraries: settings: # Can be individually specified per library as well cache: true cache_expiration: 60 - sync_mode: append asset_directory: config/assets + sync_mode: append show_unmanaged: true show_filtered: false show_missing: true diff --git a/modules/config.py b/modules/config.py index df209da3..be8b0642 100644 --- a/modules/config.py +++ b/modules/config.py @@ -258,11 +258,11 @@ class Config: if params["asset_directory"] is None: logger.warning("Config Warning: Assets will not be used asset_directory attribute must be set under config or under this specific Library") - params["sync_mode"] = check_for_attribute(libs[lib], "sync_mode", parent="plex", test_list=["append", "sync"], options=" append (Only Add Items to the Collection)\n sync (Add & Remove Items from the Collection)", default=self.general["sync_mode"], save=False) - params["show_unmanaged"] = check_for_attribute(libs[lib], "show_unmanaged", parent="plex", var_type="bool", default=self.general["show_unmanaged"], save=False) - params["show_filtered"] = check_for_attribute(libs[lib], "show_filtered", parent="plex", var_type="bool", default=self.general["show_filtered"], save=False) - params["show_missing"] = check_for_attribute(libs[lib], "show_missing", parent="plex", var_type="bool", default=self.general["show_missing"], save=False) - params["save_missing"] = check_for_attribute(libs[lib], "save_missing", parent="plex", var_type="bool", default=self.general["save_missing"], save=False) + params["sync_mode"] = check_for_attribute(libs[lib], "sync_mode", parent="settings", test_list=["append", "sync"], options=" append (Only Add Items to the Collection)\n sync (Add & Remove Items from the Collection)", default=self.general["sync_mode"], save=False) + params["show_unmanaged"] = check_for_attribute(libs[lib], "show_unmanaged", parent="settings", var_type="bool", default=self.general["show_unmanaged"], save=False) + params["show_filtered"] = check_for_attribute(libs[lib], "show_filtered", parent="settings", var_type="bool", default=self.general["show_filtered"], save=False) + params["show_missing"] = check_for_attribute(libs[lib], "show_missing", parent="settings", var_type="bool", default=self.general["show_missing"], save=False) + params["save_missing"] = check_for_attribute(libs[lib], "save_missing", parent="settings", var_type="bool", default=self.general["save_missing"], save=False) try: params["metadata_path"] = check_for_attribute(libs[lib], "metadata_path", var_type="path", default=os.path.join(default_dir, "{}.yml".format(lib)), throw=True)