diff --git a/modules/config.py b/modules/config.py index ba7e9255..702b0319 100644 --- a/modules/config.py +++ b/modules/config.py @@ -582,6 +582,7 @@ class ConfigFile: params["split_duplicates"] = check_for_attribute(lib, "split_duplicates", var_type="bool", default=False, save=False, do_print=False) params["radarr_add_all_existing"] = check_for_attribute(lib, "radarr_add_all_existing", var_type="bool", default=False, save=False, do_print=False) params["sonarr_add_all_existing"] = check_for_attribute(lib, "sonarr_add_all_existing", var_type="bool", default=False, save=False, do_print=False) + params["missing_path"] = check_for_attribute(lib, "missing_path", var_type="path", default_is_none=True, save=False, do_print=True) if lib and "operations" in lib and lib["operations"]: if isinstance(lib["operations"], dict): diff --git a/modules/library.py b/modules/library.py index d43e4199..5f6607cf 100644 --- a/modules/library.py +++ b/modules/library.py @@ -40,7 +40,7 @@ class Library(ABC): self.default_dir = params["default_dir"] self.mapping_name, output = util.validate_filename(self.original_mapping_name) self.image_table_name = self.config.Cache.get_image_table_name(self.original_mapping_name) if self.config.Cache else None - self.missing_path = os.path.join(self.default_dir, f"{self.mapping_name}_missing.yml") + self.missing_path = params["missing_path"] if params["missing_path"] else os.path.join(self.default_dir, f"{self.mapping_name}_missing.yml") self.asset_folders = params["asset_folders"] self.create_asset_folders = params["create_asset_folders"] self.dimensional_asset_rename = params["dimensional_asset_rename"]