[24] fix anime IDs

This commit is contained in:
meisnate12 2022-07-13 11:18:35 -04:00
parent 0e4e4061f3
commit ae3f3b04be
4 changed files with 7 additions and 4 deletions

View file

@ -1 +1 @@
1.17.1-develop23
1.17.1-develop24

View file

@ -28,7 +28,7 @@ class Convert:
self._anidb_to_imdb[anidb_id] = util.get_list(ids["imdb_id"])
for im_id in util.get_list(ids["imdb_id"]):
self._imdb_to_anidb[im_id] = anidb_id
if "thetvdb_id" in ids:
if "tvdb_id" in ids:
self._anidb_to_tvdb[anidb_id] = int(ids["tvdb_id"])
self._tvdb_to_anidb[int(ids["tvdb_id"])] = anidb_id
@ -61,7 +61,7 @@ class Convert:
ids.append((self._anidb_to_tvdb[anidb_id], "tvdb"))
elif anidb_id in self._anidb_to_tvdb:
ids.append((self._anidb_to_tvdb[anidb_id], "tvdb"))
elif anidb_id in self._anidb_ids:
elif str(anidb_id) in self._anidb_ids:
logger.warning(f"Convert Error: No TVDb ID or IMDb ID found for AniDB ID: {anidb_id}")
else:
logger.warning(f"Convert Error: AniDB ID: {anidb_id} not found")

View file

@ -137,6 +137,7 @@ class DataFile:
variables[name_var] = str(name)
variables["library_type"] = self.library.type.lower() if self.library else "items"
variables["library_name"] = self.library.name
template_name = variables["name"]
template, temp_vars = self.templates[template_name]

View file

@ -256,7 +256,9 @@ class Operations:
else:
mapped_genres.append(genre)
new_genres = mapped_genres
batch_display += f"\n{self.library.edit_tags('genre', item, sync_tags=new_genres, do_print=False)}"
temp_display = self.library.edit_tags('genre', item, sync_tags=new_genres, do_print=False)
if temp_display:
batch_display += f"\n{temp_display}"
except Failed:
pass