From 5c73fda9b9a57e3a10460395b2029da740d93ccd Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 17 Apr 2023 09:42:36 -0400 Subject: [PATCH] [15] fix mal_search and sort_collection --- VERSION | 2 +- modules/builder.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 84ad8b69..46009793 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.19.0-develop14 +1.19.0-develop15 diff --git a/modules/builder.py b/modules/builder.py index 45e1d611..9269b167 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -1536,7 +1536,7 @@ class CollectionBuilder: sfw = util.parse(self.Type, "sfw", dict_data, datatype="bool", methods=dict_methods, parent=method_name) if sfw: final_attributes["sfw"] = 1 - final_text += f"\nSafe for Work: {final_attributes['sfw']}" + final_text += f"\nSafe for Work: {final_attributes['sfw']}" if not final_attributes: raise Failed(f"{self.Type} Error: no mal_search attributes found") self.builders.append((method_name, (final_attributes, final_text, limit))) @@ -3069,9 +3069,9 @@ class CollectionBuilder: plex_search = {"sort_by": self.custom_sort} if self.builder_level in ["season", "episode"]: plex_search["type"] = f"{self.builder_level}s" - plex_search["any"] = {f"{self.builder_level}_collection": self.name} # noqa + plex_search["any"] = {f"{self.builder_level}_collection": [self.name]} # noqa else: - plex_search["any"] = {"collection": self.name} + plex_search["any"] = {"collection": [self.name]} try: search_data = self.build_filter("plex_search", plex_search) except FilterFailed as e: