mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-22 12:33:10 +00:00
fix smart validation
This commit is contained in:
parent
30d96d030b
commit
ce7a432424
1 changed files with 2 additions and 3 deletions
|
@ -1544,15 +1544,14 @@ class CollectionBuilder:
|
|||
display_add = ""
|
||||
for dict_data in dicts:
|
||||
if not isinstance(dict_data, dict):
|
||||
raise Failed(
|
||||
f"{self.Type} Error: {attr} must be either a dictionary or list of dictionaries")
|
||||
raise Failed(f"{self.Type} Error: {attr} must be either a dictionary or list of dictionaries")
|
||||
inside_filter, inside_display = _filter(dict_data, is_all=attr == "all", level=level)
|
||||
if len(inside_filter) > 0:
|
||||
display_add += inside_display
|
||||
results += f"{conjunction if len(results) > 0 else ''}push=1&{inside_filter}pop=1&"
|
||||
else:
|
||||
validation = self.validate_attribute(attr, modifier, final_attr, _data, validate, pairs=True)
|
||||
if validation is None:
|
||||
if validation is not False and not validation:
|
||||
continue
|
||||
elif attr in plex.date_attributes and modifier in ["", ".not"]:
|
||||
last_text = "is not in the last" if modifier == ".not" else "is in the last"
|
||||
|
|
Loading…
Reference in a new issue