mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[72] fix template bool error
This commit is contained in:
parent
821463403e
commit
cb4bb78178
2 changed files with 4 additions and 5 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.18.3-develop71
|
||||
1.18.3-develop72
|
||||
|
|
|
@ -950,6 +950,7 @@ class MetadataFile(DataFile):
|
|||
logger.debug(f"Addons: {addons}")
|
||||
logger.debug(f"Template: {template_names}")
|
||||
logger.debug(f"Other Template: {other_templates}")
|
||||
logger.debug(f"Library Variables: {self.temp_vars}")
|
||||
logger.debug(f"Template Variables: {template_variables}")
|
||||
logger.debug(f"Remove Prefix: {remove_prefix}")
|
||||
logger.debug(f"Remove Suffix: {remove_suffix}")
|
||||
|
@ -990,10 +991,8 @@ class MetadataFile(DataFile):
|
|||
used_keys.extend(key_value)
|
||||
og_call = {"value": key_value, auto_type: key_value, "key_name": key_name, "key": key}
|
||||
for k, v in template_variables.items():
|
||||
if k in self.temp_vars and key in self.temp_vars[k]:
|
||||
og_call[k] = self.temp_vars[k][key]
|
||||
elif k in self.temp_vars and "default" in self.temp_vars[k]:
|
||||
og_call[k] = self.temp_vars[k]["default"]
|
||||
if k in self.temp_vars:
|
||||
og_call[k] = self.temp_vars[k]
|
||||
elif key in v:
|
||||
og_call[k] = v[key]
|
||||
elif "default" in v:
|
||||
|
|
Loading…
Reference in a new issue