diff --git a/modules/config.py b/modules/config.py index 09085a7a..04bb6375 100644 --- a/modules/config.py +++ b/modules/config.py @@ -188,6 +188,7 @@ class Config: "show_unmanaged": check_for_attribute(self.data, "show_unmanaged", parent="settings", var_type="bool", default=True), "show_filtered": check_for_attribute(self.data, "show_filtered", parent="settings", var_type="bool", default=False), "show_missing": check_for_attribute(self.data, "show_missing", parent="settings", var_type="bool", default=True), + "show_missing_assets": check_for_attribute(self.data, "show_missing_assets", parent="settings", var_type="bool", default=True), "save_missing": check_for_attribute(self.data, "save_missing", parent="settings", var_type="bool", default=True), "missing_only_released": check_for_attribute(self.data, "missing_only_released", parent="settings", var_type="bool", default=False), "create_asset_folders": check_for_attribute(self.data, "create_asset_folders", parent="settings", var_type="bool", default=False), @@ -393,6 +394,7 @@ class Config: params["show_unmanaged"] = check_for_attribute(lib, "show_unmanaged", parent="settings", var_type="bool", default=self.general["show_unmanaged"], do_print=False, save=False) params["show_filtered"] = check_for_attribute(lib, "show_filtered", parent="settings", var_type="bool", default=self.general["show_filtered"], do_print=False, save=False) params["show_missing"] = check_for_attribute(lib, "show_missing", parent="settings", var_type="bool", default=self.general["show_missing"], do_print=False, save=False) + params["show_missing_assets"] = check_for_attribute(lib, "show_missing_assets", parent="settings", var_type="bool", default=self.general["show_missing_assets"], do_print=False, save=False) params["save_missing"] = check_for_attribute(lib, "save_missing", parent="settings", var_type="bool", default=self.general["save_missing"], do_print=False, save=False) params["missing_only_released"] = check_for_attribute(lib, "missing_only_released", parent="settings", var_type="bool", default=self.general["missing_only_released"], do_print=False, save=False) params["create_asset_folders"] = check_for_attribute(lib, "create_asset_folders", parent="settings", var_type="bool", default=self.general["create_asset_folders"], do_print=False, save=False) diff --git a/modules/library.py b/modules/library.py index 8276d42a..0d1cceb9 100644 --- a/modules/library.py +++ b/modules/library.py @@ -44,6 +44,7 @@ class Library(ABC): self.show_unmanaged = params["show_unmanaged"] self.show_filtered = params["show_filtered"] self.show_missing = params["show_missing"] + self.show_missing_assets = params["show_missing_assets"] self.save_missing = params["save_missing"] self.missing_only_released = params["missing_only_released"] self.create_asset_folders = params["create_asset_folders"] diff --git a/modules/plex.py b/modules/plex.py index 303e0b71..0fbc69bd 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -608,7 +608,6 @@ class Plex(Library): def update_item_from_assets(self, item, overlay=None, create=False): name = os.path.basename(os.path.dirname(str(item.locations[0])) if self.is_movie else str(item.locations[0])) - logger.debug(name) found_folder = False poster = None background = None @@ -672,5 +671,5 @@ class Plex(Library): logger.info(f"Asset Directory Created: {os.path.join(self.asset_directory[0], name)}") elif not overlay and self.asset_folders and not found_folder: logger.error(f"Asset Warning: No asset folder found called '{name}'") - elif not poster and not background: + elif not poster and not background and self.show_missing_assets: logger.error(f"Asset Warning: No poster or background found in an assets folder for '{name}'")