mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[88] change mapping_name to mapping_id
This commit is contained in:
parent
da018ec90f
commit
3d82e3c675
2 changed files with 7 additions and 7 deletions
2
VERSION
2
VERSION
|
@ -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"
|
||||
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")
|
||||
|
|
Loading…
Reference in a new issue