From a48c7271183e4709691f7e770e661b5462e8d7ba Mon Sep 17 00:00:00 2001 From: Chaz Larson Date: Fri, 20 Sep 2024 12:10:17 -0500 Subject: [PATCH] [37] add '.any' modifier to a few search attributes (#2229) --- CHANGELOG | 1 + VERSION | 2 +- modules/imdb.py | 39 ++++++++++++++++++++++++++++++--------- 3 files changed, 32 insertions(+), 10 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 76e3abea..e6598194 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -32,4 +32,5 @@ Fixed #2176 `clean_bundles`, `optimize`, and `empty_trash` not working as global Fixed #2186 `total_runtime` will now trigger an overlay update Fixed #2195 an image on the docs was a dead link Fixes sort order of resolution collections +Fixes #2228 ".any" not accepted for a variety of imdb_search parameters Various other Minor Fixes diff --git a/VERSION b/VERSION index 4b1e4da1..f4aaae08 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.2-build36 +2.0.2-build37 diff --git a/modules/imdb.py b/modules/imdb.py index 51132251..1e30faf4 100644 --- a/modules/imdb.py +++ b/modules/imdb.py @@ -42,16 +42,37 @@ chart_urls = { "trending_tamil": "india/tamil", "trending_telugu": "india/telugu", } + imdb_search_attributes = [ - "limit", "sort_by", "title", "type", "type.not", "release.after", "release.before", "rating.gte", "rating.lte", - "votes.gte", "votes.lte", "genre", "genre.any", "genre.not", "topic", "topic.any", "topic.not", - "alternate_version", "alternate_version.not", "crazy_credit", "crazy_credit.not", "location", "location.not", - "goof", "goof.not", "plot", "plot.not", "quote", "quote.not", "soundtrack", "soundtrack.not", - "trivia", "trivia.not", "event", "event.winning", "imdb_top", "imdb_bottom", "company", "content_rating", - "country", "country.any", "country.not", "country.origin", "keyword", "keyword.any", - "keyword.not", "series", "series.not", "list", "list.any", "list.not", "language", "language.any", "language.not", - "language.primary", "popularity.gte", "popularity.lte", "cast", "cast.any", "cast.not", "runtime.gte", - "runtime.lte", "adult", + "limit", + "sort_by", + "title", + "type", "type.not", + "release.after", "release.before", "rating.gte", "rating.lte", + "votes.gte", "votes.lte", + "genre", "genre.any", "genre.not", + "topic", "topic.any", "topic.not", + "alternate_version", "alternate_version.any", "alternate_version.not", + "crazy_credit", "crazy_credit.any", "crazy_credit.not", + "location", "location.any", "location.not", + "goof", "goof.any", "goof.not", + "plot", "plot.any", "plot.not", + "quote", "quote.any", "quote.not", + "soundtrack", "soundtrack.any", "soundtrack.not", + "trivia", "trivia.any", "trivia.not", + "event", "event.winning", + "imdb_top", "imdb_bottom", + "company", + "content_rating", + "country", "country.any", "country.not", "country.origin", + "keyword", "keyword.any", "keyword.not", + "series", "series.not", + "list", "list.any", "list.not", + "language", "language.any", "language.not", "language.primary", + "popularity.gte", "popularity.lte", + "cast", "cast.any", "cast.not", + "runtime.gte", "runtime.lte", + "adult", ] sort_by_options = { "popularity": "POPULARITY",