#585 Genre Mapper accepts Blanks to delete genres

pull/652/head
meisnate12 3 years ago
parent 40c92ecd7c
commit 326443e915

@ -600,7 +600,8 @@ def library_operations(config, library):
for genre in item.genres: for genre in item.genres:
if genre.tag in library.genre_mapper: if genre.tag in library.genre_mapper:
deletes.append(genre.tag) 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) library.edit_tags("genre", item, add_tags=adds, remove_tags=deletes)
except Failed: except Failed:
pass pass

Loading…
Cancel
Save