mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-22 20:43:07 +00:00
[130] fix video_format
This commit is contained in:
parent
9ab918ed6c
commit
91f3177a54
2 changed files with 18 additions and 4 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.17.3-develop129
|
||||
1.17.3-develop130
|
||||
|
|
|
@ -269,9 +269,6 @@ class DataFile:
|
|||
elif language in var_value:
|
||||
translation_variables[var_key] = var_value[language]
|
||||
|
||||
for key, value in variables.copy().items():
|
||||
variables[f"{key}_encoded"] = requests.utils.quote(str(value))
|
||||
|
||||
def replace_var(input_item, search_dicts):
|
||||
if not isinstance(search_dicts, list):
|
||||
search_dicts = [search_dicts]
|
||||
|
@ -397,6 +394,23 @@ class DataFile:
|
|||
raise Failed(f"{self.data_type} Error: template sub-attribute move_prefix is blank")
|
||||
variables[f"{self.data_type.lower()}_sort"] = sort_name if sort_name else variables[name_var]
|
||||
|
||||
for key, value in variables.copy().items():
|
||||
if "<<" in key and ">>" in key:
|
||||
for k, v in variables.items():
|
||||
if f"<<{k}>>" in key:
|
||||
key = key.replace(f"<<{k}>>", v)
|
||||
for k, v in default.items():
|
||||
if f"<<{k}>>" in key:
|
||||
key = key.replace(f"<<{k}>>", v)
|
||||
variables[key] = value
|
||||
for key, value in variables.copy().items():
|
||||
variables[f"{key}_encoded"] = requests.utils.quote(str(value))
|
||||
|
||||
for k in default:
|
||||
if k in variables:
|
||||
default.pop(k)
|
||||
optional = [o for o in optional if o not in variables and o not in default]
|
||||
|
||||
logger.debug("")
|
||||
logger.debug(f"Variables: {variables}")
|
||||
logger.debug("")
|
||||
|
|
Loading…
Reference in a new issue