|
|
|
@ -612,6 +612,7 @@ def library_operations(config, library):
|
|
|
|
|
raise Failed
|
|
|
|
|
|
|
|
|
|
if library.mass_genre_update or library.genre_mapper:
|
|
|
|
|
try:
|
|
|
|
|
new_genres = []
|
|
|
|
|
if library.mass_genre_update:
|
|
|
|
|
if tmdb_item and library.mass_genre_update == "tmdb":
|
|
|
|
@ -622,6 +623,8 @@ def library_operations(config, library):
|
|
|
|
|
new_genres = tvdb_item.genres
|
|
|
|
|
elif anidb_item and library.mass_genre_update == "anidb":
|
|
|
|
|
new_genres = anidb_item.tags
|
|
|
|
|
else:
|
|
|
|
|
raise Failed
|
|
|
|
|
if not new_genres:
|
|
|
|
|
logger.info(f"{item.title[:25]:<25} | No Genres Found")
|
|
|
|
|
if library.genre_mapper:
|
|
|
|
@ -636,6 +639,8 @@ def library_operations(config, library):
|
|
|
|
|
mapped_genres.append(genre)
|
|
|
|
|
new_genres = mapped_genres
|
|
|
|
|
batch_display += f"\n{library.edit_tags('genre', item, sync_tags=new_genres)}"
|
|
|
|
|
except Failed:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
if library.mass_audience_rating_update:
|
|
|
|
|
try:
|
|
|
|
|