[88] change mapping_name to mapping_id

pull/1324/head
meisnate12 2 years ago
parent da018ec90f
commit 3d82e3c675

@ -1 +1 @@
1.18.3-develop87 1.18.3-develop88

@ -1171,14 +1171,14 @@ class MetadataFile(DataFile):
id_type = "TMDb" if self.library.is_movie else "TVDb" id_type = "TMDb" if self.library.is_movie else "TVDb"
logger.info("") logger.info("")
logger.info(f"{id_type} ID Mapping: {mapping_id}") logger.info(f"{id_type} ID Mapping: {mapping_id}")
if self.library.is_movie and mapping_name in self.library.movie_map: if self.library.is_movie and mapping_id in self.library.movie_map:
for item_id in self.library.movie_map[mapping_name]: for item_id in self.library.movie_map[mapping_id]:
item.append(self.library.fetchItem(item_id)) item.append(self.library.fetchItem(item_id))
elif self.library.is_show and mapping_name in self.library.show_map: elif self.library.is_show and mapping_id in self.library.show_map:
for item_id in self.library.show_map[mapping_name]: for item_id in self.library.show_map[mapping_id]:
item.append(self.library.fetchItem(item_id)) item.append(self.library.fetchItem(item_id))
elif mapping_name in self.library.imdb_map: elif mapping_id in self.library.imdb_map:
for item_id in self.library.imdb_map[mapping_name]: for item_id in self.library.imdb_map[mapping_id]:
item.append(self.library.fetchItem(item_id)) item.append(self.library.fetchItem(item_id))
else: else:
logger.error(f"Metadata Error: {id_type} ID not mapped") logger.error(f"Metadata Error: {id_type} ID not mapped")

Loading…
Cancel
Save