From a7e99cb4fd350b7e46a251e580d89e89b481a5fc Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Thu, 3 Feb 2022 16:36:51 -0500 Subject: [PATCH] replace lists with dicts --- VERSION | 2 +- modules/meta.py | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index ec43c3b3..806ba194 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.15.1-develop41 +1.15.1-develop42 diff --git a/modules/meta.py b/modules/meta.py index 30c877e3..377ebc3f 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -308,17 +308,19 @@ class MetadataFile(DataFile): except NotFound: logger.error(f"TMDb Error: Actor {role['name']} Not Found") elif auto_type == "trakt_user_lists": - auto_list = [] + auto_list = {} for option in util.parse("Config", "data", dynamic, parent=map_name, methods=methods, datatype="list"): - auto_list.extend(self.config.Trakt.get_user_lists(option)) + for k, v in self.config.Trakt.get_user_lists(option): + auto_list[k] = v elif auto_type == "trakt_liked_lists": auto_list = self.config.Trakt.get_liked_lists() elif auto_type == "tmdb_popular_people": auto_list = self.config.TMDb.get_popular_people(util.parse("Config", "data", dynamic, parent=map_name, methods=methods, datatype="int", minimum=1)) elif auto_type == "trakt_people_list": - auto_list = [] + auto_list = {} for option in util.parse("Config", "data", dynamic, parent=map_name, methods=methods, datatype="list"): - auto_list.extend(self.config.Trakt.get_people(option)) + for k, v in self.config.Trakt.get_people(option).items(): + auto_list[k] = v else: raise Failed(f"Config Error: {map_name} type attribute {dynamic[methods['type']]} invalid") title_format = default_title_format