From 5a2c5356a69f2937e8f28fb4cf5423e9f8a9f76b Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Fri, 14 Jan 2022 12:57:48 -0500 Subject: [PATCH] fix resolution filter --- modules/plex.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/plex.py b/modules/plex.py index 64d3abdd..47b40f12 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -552,15 +552,16 @@ class Plex(Library): try: names = [] choices = {} + use_title = title and final_search not in ["contentRating", "audioLanguage", "subtitleLanguage", "resolution"] for choice in self.Plex.listFilterChoices(final_search): if choice.title not in names: names.append(choice.title) if choice.key not in names: names.append(choice.key) - choices[choice.title] = choice.title if title else choice.key - choices[choice.key] = choice.title if title else choice.key - choices[choice.title.lower()] = choice.title if title else choice.key - choices[choice.key.lower()] = choice.title if title else choice.key + choices[choice.title] = choice.title if use_title else choice.key + choices[choice.key] = choice.title if use_title else choice.key + choices[choice.title.lower()] = choice.title if use_title else choice.key + choices[choice.key.lower()] = choice.title if use_title else choice.key return choices, names except NotFound: logger.debug(f"Search Attribute: {final_search}")