From 942b7efa88847badb691d1427c8c04bb3cf9e3a3 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Thu, 5 Aug 2021 13:48:57 -0400 Subject: [PATCH] manged keys better --- modules/builder.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/builder.py b/modules/builder.py index d32db6e5..bc5607e3 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -1026,18 +1026,22 @@ class CollectionBuilder: items_found_inside = 0 if len(movie_ids) > 0: items_found_inside += len(movie_ids) + movie_rating_keys = [] for movie_id in movie_ids: if movie_id in self.library.movie_map: - add_rating_keys(self.library.movie_map[movie_id]) + movie_rating_keys.append(self.library.movie_map[movie_id]) elif movie_id not in self.missing_movies: self.missing_movies.append(movie_id) + add_rating_keys(movie_rating_keys) if len(show_ids) > 0: items_found_inside += len(show_ids) + show_rating_keys = [] for show_id in show_ids: if show_id in self.library.show_map: - add_rating_keys(self.library.show_map[show_id]) + show_rating_keys.append(self.library.show_map[show_id]) elif show_id not in self.missing_shows: self.missing_shows.append(show_id) + add_rating_keys(show_rating_keys) return items_found_inside for method, value in self.builders: logger.debug("")