From def6c9cb70e1df9d6dcf601fd4db15e4228c49ed Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Thu, 20 Oct 2022 18:17:23 -0400 Subject: [PATCH] [143] fix defaults error --- VERSION | 2 +- defaults/playlist.yml | 3 +++ modules/meta.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index a6f6bbd8..6bab4def 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.3-develop142 +1.17.3-develop143 diff --git a/defaults/playlist.yml b/defaults/playlist.yml index 8e4fb535..b7078511 100644 --- a/defaults/playlist.yml +++ b/defaults/playlist.yml @@ -8,6 +8,9 @@ external_templates: pmm: templates +translations: + pmm: translations + templates: playlist: default: diff --git a/modules/meta.py b/modules/meta.py index be80c5fa..45878b27 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -264,7 +264,7 @@ class DataFile: 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()}) + 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}) key_name_variables = {} for var_key, var_value in self.key_names.items(): if var_key == "library_type" and language in var_value: