From 3d82e3c6751acaa0c2f08615c650d4e78dc49aab Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Thu, 23 Feb 2023 14:13:25 -0500 Subject: [PATCH] [88] change mapping_name to mapping_id --- VERSION | 2 +- modules/meta.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/VERSION b/VERSION index 448663d7..f5711e33 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.18.3-develop87 +1.18.3-develop88 diff --git a/modules/meta.py b/modules/meta.py index 16c6f0b1..b9fa7f3d 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -1171,14 +1171,14 @@ class MetadataFile(DataFile): id_type = "TMDb" if self.library.is_movie else "TVDb" logger.info("") logger.info(f"{id_type} ID Mapping: {mapping_id}") - if self.library.is_movie and mapping_name in self.library.movie_map: - for item_id in self.library.movie_map[mapping_name]: + if self.library.is_movie and mapping_id in self.library.movie_map: + for item_id in self.library.movie_map[mapping_id]: item.append(self.library.fetchItem(item_id)) - elif self.library.is_show and mapping_name in self.library.show_map: - for item_id in self.library.show_map[mapping_name]: + elif self.library.is_show and mapping_id in self.library.show_map: + for item_id in self.library.show_map[mapping_id]: item.append(self.library.fetchItem(item_id)) - elif mapping_name in self.library.imdb_map: - for item_id in self.library.imdb_map[mapping_name]: + elif mapping_id in self.library.imdb_map: + for item_id in self.library.imdb_map[mapping_id]: item.append(self.library.fetchItem(item_id)) else: logger.error(f"Metadata Error: {id_type} ID not mapped")