diff --git a/VERSION b/VERSION index 645bb42f..7fc5962d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.15.1-develop95 +1.15.1-develop96 diff --git a/modules/meta.py b/modules/meta.py index c594ec04..b00c4922 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -293,8 +293,8 @@ class MetadataFile(DataFile): raise Failed(f"Config Error: {map_name} data attribute not found") actor_methods = {am.lower(): am for am in actor_data} actor_depth = util.parse("Config", "actor_depth", actor_data, parent=f"{map_name} data", methods=actor_methods, datatype="int", default=3, minimum=1) - actor_minimum = util.parse("Config", "actor_minimum", actor_data, parent=f"{map_name} data", methods=actor_methods, datatype="int", default=3, minimum=1) if "actor_minimum" else None - number_of_actors = util.parse("Config", "number_of_actors", actor_data, parent=f"{map_name} data", methods=actor_methods, datatype="int", default=25, minimum=1) if "number_of_actors" else None + actor_minimum = util.parse("Config", "actor_minimum", actor_data, parent=f"{map_name} data", methods=actor_methods, datatype="int", default=3, minimum=1) if "actor_minimum" in actor_methods else None + number_of_actors = util.parse("Config", "number_of_actors", actor_data, parent=f"{map_name} data", methods=actor_methods, datatype="int", default=25, minimum=1) if "number_of_actors" in actor_methods else None if not actor_minimum and not number_of_actors: actor_minimum = 3 if not all_items: @@ -312,7 +312,9 @@ class MetadataFile(DataFile): roles.sort(key=operator.itemgetter('count'), reverse=True) actor_count = 0 for role in roles: - if role["name"] not in exclude and ((number_of_actors and actor_count < number_of_actors) or (actor_minimum and role["count"] >= actor_minimum)): + if (number_of_actors and actor_count >= number_of_actors) or (actor_minimum and role["count"] < actor_minimum): + break + if role["name"] not in exclude: try: results = self.config.TMDb.search_people(role["name"]) auto_list[results[0].id] = results[0].name @@ -337,8 +339,8 @@ class MetadataFile(DataFile): if "<