mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[10] fix ignoring translation variables
This commit is contained in:
parent
d92bd09575
commit
36eaf230b5
2 changed files with 3 additions and 3 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.18.2-develop9
|
||||
1.18.2-develop10
|
||||
|
|
|
@ -306,8 +306,8 @@ class DataFile:
|
|||
conditionals[k] = v
|
||||
|
||||
language = variables["language"] if "language" in variables else "default"
|
||||
translation_variables = {k: v[language if language in v else "default"] for k, v in self.translations.items()}
|
||||
translation_variables.update({k: v[language if language in v else "default"] for k, v in self.translation_variables.items() if language in v or "default" in v})
|
||||
translation_variables = {k: v[language if language in v else "default"] for k, v in self.translations.items() if k not in optional}
|
||||
translation_variables.update({k: v[language if language in v else "default"] for k, v in self.translation_variables.items() if (language in v or "default" in v) and k not in optional})
|
||||
key_name_variables = {}
|
||||
for var_key, var_value in self.key_names.items():
|
||||
if var_key == "library_type" and language in var_value:
|
||||
|
|
Loading…
Reference in a new issue