mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-26 06:20:23 +00:00
#647 genre_mapping fix
This commit is contained in:
parent
3fecc7798e
commit
2120315c01
1 changed files with 5 additions and 2 deletions
|
@ -658,8 +658,11 @@ class ConfigFile:
|
|||
if lib["operations"]["genre_mapper"] and isinstance(lib["operations"]["genre_mapper"], dict):
|
||||
params["genre_mapper"] = {}
|
||||
for new_genre, old_genres in lib["operations"]["genre_mapper"].items():
|
||||
for old_genre in util.get_list(old_genres, split=False):
|
||||
params["genre_mapper"][old_genre] = new_genre
|
||||
for old_genre in util.get_list(old_genres):
|
||||
if old_genre == new_genre:
|
||||
logger.error("Config Error: genres cannot be mapped to themselves")
|
||||
else:
|
||||
params["genre_mapper"][old_genre] = new_genre
|
||||
else:
|
||||
logger.error("Config Error: genre_mapper is blank")
|
||||
if "genre_collections" in lib["operations"]:
|
||||
|
|
Loading…
Reference in a new issue