mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-25 05:50:21 +00:00
[6] Merge remote-tracking branch 'ymendel/ym/conditional-on-default' into nightly
This commit is contained in:
commit
b5e44976bd
1 changed files with 3 additions and 2 deletions
|
@ -399,8 +399,9 @@ class DataFile:
|
|||
error_text = "- exists"
|
||||
con_var_value = var_key[:-7]
|
||||
elif var_key.endswith(".not"):
|
||||
if var_key[:-4] in variables:
|
||||
con_var_value = variables[var_key[:-4]]
|
||||
var_name = var_key[:-4]
|
||||
if var_name in variables or var_name in default:
|
||||
con_var_value = variables[var_name] if var_name in variables else default[var_name]
|
||||
if isinstance(var_value, list):
|
||||
if con_var_value in var_value:
|
||||
error_text = f'in {var_value}'
|
||||
|
|
Loading…
Reference in a new issue