mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
coerce to string
This commit is contained in:
parent
b52c9fea86
commit
2bc3b74c17
1 changed files with 4 additions and 4 deletions
|
@ -454,10 +454,10 @@ class DataFile:
|
||||||
if "<<" in key and ">>" in key:
|
if "<<" in key and ">>" in key:
|
||||||
for k, v in variables.items():
|
for k, v in variables.items():
|
||||||
if f"<<{k}>>" in key:
|
if f"<<{k}>>" in key:
|
||||||
key = key.replace(f"<<{k}>>", v)
|
key = key.replace(f"<<{k}>>", f"{v}")
|
||||||
for k, v in default.items():
|
for k, v in default.items():
|
||||||
if f"<<{k}>>" in key:
|
if f"<<{k}>>" in key:
|
||||||
key = key.replace(f"<<{k}>>", v)
|
key = key.replace(f"<<{k}>>", f"{v}")
|
||||||
if key not in variables:
|
if key not in variables:
|
||||||
variables[key] = value
|
variables[key] = value
|
||||||
for key, value in variables.copy().items():
|
for key, value in variables.copy().items():
|
||||||
|
@ -470,10 +470,10 @@ class DataFile:
|
||||||
if "<<" in key and ">>" in key:
|
if "<<" in key and ">>" in key:
|
||||||
for k, v in variables.items():
|
for k, v in variables.items():
|
||||||
if f"<<{k}>>" in key:
|
if f"<<{k}>>" in key:
|
||||||
key = key.replace(f"<<{k}>>", v)
|
key = key.replace(f"<<{k}>>", f"{v}")
|
||||||
for k, v in default.items():
|
for k, v in default.items():
|
||||||
if f"<<{k}>>" in key:
|
if f"<<{k}>>" in key:
|
||||||
key = key.replace(f"<<{k}>>", v)
|
key = key.replace(f"<<{k}>>", f"{v}")
|
||||||
if key not in variables and key not in default:
|
if key not in variables and key not in default:
|
||||||
optional.append(key)
|
optional.append(key)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue