mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-26 14:30:25 +00:00
#585 Genre Mapper accepts Blanks to delete genres
This commit is contained in:
parent
40c92ecd7c
commit
326443e915
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue