From 565d165b5d5e5ab48ac1a1695db4959e84a34b92 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 19 May 2021 15:34:55 -0400 Subject: [PATCH] fix limit error on plex_search --- modules/builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/builder.py b/modules/builder.py index 64fcd2ca..2bdc8e5e 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -933,8 +933,6 @@ class CollectionBuilder: raise Failed(f"Collection Error: {search_final} plex search attribute only works for movie libraries") elif search_final in plex.show_only_searches and self.library.is_movie: raise Failed(f"Collection Error: {search_final} plex search attribute only works for show libraries") - elif search_final not in plex.searches: - raise Failed(f"Collection Error: {search_final} is not a valid plex search attribute") elif search_data is None: raise Failed(f"Collection Error: {search_final} plex search attribute is blank") elif search == "sort_by": @@ -949,6 +947,8 @@ class CollectionBuilder: raise Failed(f"Collection Warning: plex search limit attribute: {search_data} must be an integer greater then 0") else: searches[search] = search_data + elif search_final not in plex.searches: + raise Failed(f"Collection Error: {search_final} is not a valid plex search attribute") elif search in ["title", "studio"] and modifier in ["", ".and", ".not", ".begins", ".ends"]: searches[search_final] = util.get_list(search_data, split=False) elif search in plex.tags and modifier in ["", ".and", ".not", ".begins", ".ends"]: