mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-25 22:10:22 +00:00
[177] fix translation_prefix
This commit is contained in:
parent
af9c4f0bb8
commit
f8273cb3c9
2 changed files with 2 additions and 4 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
1.18.3-develop176
|
1.18.3-develop177
|
||||||
|
|
|
@ -315,11 +315,9 @@ class CollectionBuilder:
|
||||||
trans_name = translations["collections"][translation_key]["name"]
|
trans_name = translations["collections"][translation_key]["name"]
|
||||||
if "summary" in translations["collections"][translation_key]:
|
if "summary" in translations["collections"][translation_key]:
|
||||||
trans_summary = translations["collections"][translation_key]["summary"]
|
trans_summary = translations["collections"][translation_key]["summary"]
|
||||||
if "translation_prefix" in methods:
|
if "translation_prefix" in methods and self.data[methods["translation_prefix"]]:
|
||||||
logger.debug("")
|
logger.debug("")
|
||||||
logger.debug("Validating Method: translation_prefix")
|
logger.debug("Validating Method: translation_prefix")
|
||||||
if not self.data[methods["translation_prefix"]]:
|
|
||||||
raise Failed(f"{self.Type} Error: translation_prefix attribute is blank")
|
|
||||||
logger.debug(f"Value: {self.data[methods['translation_prefix']]}")
|
logger.debug(f"Value: {self.data[methods['translation_prefix']]}")
|
||||||
en_name = f"{self.data[methods['translation_prefix']]}{en_name}"
|
en_name = f"{self.data[methods['translation_prefix']]}{en_name}"
|
||||||
trans_name = f"{self.data[methods['translation_prefix']]}{trans_name}"
|
trans_name = f"{self.data[methods['translation_prefix']]}{trans_name}"
|
||||||
|
|
Loading…
Reference in a new issue