#558 fix dictionary_variables error

pull/590/head
meisnate12 3 years ago
parent 042a6c92d0
commit e4e92b009a

@ -627,7 +627,7 @@ def library_operations(config, library):
for _i, _n in tmdb_collections.items(): for _i, _n in tmdb_collections.items():
if int(_i) not in library.tmdb_collections["exclude_ids"]: if int(_i) not in library.tmdb_collections["exclude_ids"]:
template = {"name": "TMDb Collection", "collection_id": _i} template = {"name": "TMDb Collection", "collection_id": _i}
for k, v in library.tmdb_collections["dictionary_variables"]: for k, v in library.tmdb_collections["dictionary_variables"].items():
if int(_i) in v: if int(_i) in v:
template[k] = v[int(_i)] template[k] = v[int(_i)]
for suffix in library.tmdb_collections["remove_suffix"]: for suffix in library.tmdb_collections["remove_suffix"]:
@ -640,7 +640,7 @@ def library_operations(config, library):
for genre in library.get_genres(): for genre in library.get_genres():
if genre not in library.genre_collections["exclude_genres"]: if genre not in library.genre_collections["exclude_genres"]:
template = {"name": "Genre Collection", "genre": genre} template = {"name": "Genre Collection", "genre": genre}
for k, v in library.genre_collections["dictionary_variables"]: for k, v in library.genre_collections["dictionary_variables"].items():
if genre in v: if genre in v:
template[k] = v[genre] template[k] = v[genre]
title = library.genre_collections["title_format"] title = library.genre_collections["title_format"]

Loading…
Cancel
Save