mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[6] fix No Anime Found errors
This commit is contained in:
parent
6cafca3020
commit
f2d6020c64
2 changed files with 10 additions and 8 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.18.0-develop5
|
||||
1.18.0-develop6
|
||||
|
|
|
@ -173,17 +173,19 @@ class Operations:
|
|||
anidb_id = self.config.Convert._imdb_to_anidb[imdb_id]
|
||||
else:
|
||||
anidb_id = None
|
||||
logger.info(f"No AniDB ID for Guid: {item.guid}")
|
||||
if any([o.startswith("anidb") for o in self.library.meta_operations]):
|
||||
if anidb_id:
|
||||
try:
|
||||
anidb_item = self.config.AniDB.get_anime(anidb_id)
|
||||
except Failed as e:
|
||||
logger.error(str(e))
|
||||
else:
|
||||
logger.warning(f"No AniDB ID for Guid: {item.guid}")
|
||||
if any([o.startswith("mal") for o in self.library.meta_operations]):
|
||||
if item.ratingKey in reverse_mal:
|
||||
mal_id = reverse_mal[item.ratingKey]
|
||||
elif not anidb_id or anidb_id not in self.config.Convert._anidb_to_mal:
|
||||
logger.info(f"No AniDB ID to Convert to MyAnimeList ID for Guid: {item.guid}")
|
||||
logger.warning(f"No AniDB ID to Convert to MyAnimeList ID for Guid: {item.guid}")
|
||||
mal_id = None
|
||||
else:
|
||||
mal_id = self.config.Convert._anidb_to_mal[anidb_id]
|
||||
|
|
Loading…
Reference in a new issue