[88] change mapping_name to mapping_id

This commit is contained in:
meisnate12 2023-02-23 14:13:25 -05:00
parent da018ec90f
commit 3d82e3c675
2 changed files with 7 additions and 7 deletions

View file

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

View file

@ -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")