|
|
@ -638,13 +638,13 @@ class CollectionBuilder:
|
|
|
|
prefix_list = []
|
|
|
|
prefix_list = []
|
|
|
|
if "exclude_prefix" in dict_methods and method_data[dict_methods["exclude_prefix"]]:
|
|
|
|
if "exclude_prefix" in dict_methods and method_data[dict_methods["exclude_prefix"]]:
|
|
|
|
if isinstance(method_data[dict_methods["exclude_prefix"]], list):
|
|
|
|
if isinstance(method_data[dict_methods["exclude_prefix"]], list):
|
|
|
|
prefix_list.extend(method_data[dict_methods["exclude_prefix"]])
|
|
|
|
prefix_list.extend([exclude for exclude in method_data[dict_methods["exclude_prefix"]] if exclude])
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
prefix_list.append(str(method_data[dict_methods["exclude_prefix"]]))
|
|
|
|
prefix_list.append(str(method_data[dict_methods["exclude_prefix"]]))
|
|
|
|
exact_list = []
|
|
|
|
exact_list = []
|
|
|
|
if "exclude" in dict_methods and method_data[dict_methods["exclude"]]:
|
|
|
|
if "exclude" in dict_methods and method_data[dict_methods["exclude"]]:
|
|
|
|
if isinstance(method_data[dict_methods["exclude"]], list):
|
|
|
|
if isinstance(method_data[dict_methods["exclude"]], list):
|
|
|
|
exact_list.extend(method_data[dict_methods["exclude"]])
|
|
|
|
exact_list.extend([exclude for exclude in method_data[dict_methods["exclude"]] if exclude])
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
exact_list.append(str(method_data[dict_methods["exclude"]]))
|
|
|
|
exact_list.append(str(method_data[dict_methods["exclude"]]))
|
|
|
|
if len(prefix_list) == 0 and len(exact_list) == 0:
|
|
|
|
if len(prefix_list) == 0 and len(exact_list) == 0:
|
|
|
@ -1230,6 +1230,9 @@ class CollectionBuilder:
|
|
|
|
except BadRequest:
|
|
|
|
except BadRequest:
|
|
|
|
logger.error(f"Detail: {image_method} failed to update {message}")
|
|
|
|
logger.error(f"Detail: {image_method} failed to update {message}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if len(self.posters) > 0:
|
|
|
|
|
|
|
|
logger.info("")
|
|
|
|
|
|
|
|
|
|
|
|
if len(self.posters) > 1:
|
|
|
|
if len(self.posters) > 1:
|
|
|
|
logger.info(f"{len(self.posters)} posters found:")
|
|
|
|
logger.info(f"{len(self.posters)} posters found:")
|
|
|
|
for p in self.posters:
|
|
|
|
for p in self.posters:
|
|
|
@ -1254,6 +1257,7 @@ class CollectionBuilder:
|
|
|
|
elif "tmdb_show_details" in self.posters: set_image("tmdb_show_details", self.posters)
|
|
|
|
elif "tmdb_show_details" in self.posters: set_image("tmdb_show_details", self.posters)
|
|
|
|
else: logger.info("No poster to update")
|
|
|
|
else: logger.info("No poster to update")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if len(self.backgrounds) > 0:
|
|
|
|
logger.info("")
|
|
|
|
logger.info("")
|
|
|
|
|
|
|
|
|
|
|
|
if len(self.backgrounds) > 1:
|
|
|
|
if len(self.backgrounds) > 1:
|
|
|
|