From 326443e915695a755df908d6ac25c88ef250f69e Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 24 Jan 2022 10:13:46 -0500 Subject: [PATCH] #585 Genre Mapper accepts Blanks to delete genres --- plex_meta_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plex_meta_manager.py b/plex_meta_manager.py index 506dde72..f6541661 100644 --- a/plex_meta_manager.py +++ b/plex_meta_manager.py @@ -600,7 +600,8 @@ def library_operations(config, library): for genre in item.genres: if genre.tag in library.genre_mapper: deletes.append(genre.tag) - adds.append(library.genre_mapper[genre.tag]) + if library.genre_mapper[genre.tag]: + adds.append(library.genre_mapper[genre.tag]) library.edit_tags("genre", item, add_tags=adds, remove_tags=deletes) except Failed: pass