From b8cb84cff948e798b4a40e0117ac87f34f2906bd Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Fri, 18 Mar 2022 09:08:15 -0400 Subject: [PATCH] [6] add show_unmatched to plex searches --- VERSION | 2 +- docs/metadata/builders/plex.md | 1 + docs/metadata/builders/smart.md | 1 + modules/plex.py | 7 ++++--- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 7c376739..ebdf6ec2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.16.2-develop5 +1.16.2-develop6 diff --git a/docs/metadata/builders/plex.md b/docs/metadata/builders/plex.md index d07e56ee..a89f8d75 100644 --- a/docs/metadata/builders/plex.md +++ b/docs/metadata/builders/plex.md @@ -298,6 +298,7 @@ Boolean Searches take no modifier and can only be either `true` or `false`. | `episode_duplicate` | Has Duplicate Episodes | ❌ | ✅ | ❌ | | `episode_progress` | Has Episode Progress | ❌ | ✅ | ❌ | | `episode_unmatched` | Has Episodes Unmatched | ❌ | ✅ | ❌ | +| `show_unmatched` | Has Shows Unmatched | ❌ | ✅ | ❌ | | `artist_unmatched` | Is Artist's Unmatched | ❌ | ❌ | ✅ | | `album_unmatched` | Is Album's Unmatched | ❌ | ❌ | ✅ | | `track_trash` | Is Track Trashed | ❌ | ❌ | ✅ | diff --git a/docs/metadata/builders/smart.md b/docs/metadata/builders/smart.md index b199076d..ed002c8e 100644 --- a/docs/metadata/builders/smart.md +++ b/docs/metadata/builders/smart.md @@ -265,6 +265,7 @@ Boolean Filters take no modifier and can only be either `true` or `false`. | `episode_duplicate` | Has Duplicate Episodes | ❌ | ✅ | ❌ | | `episode_progress` | Has Episode Progress | ❌ | ✅ | ❌ | | `episode_unmatched` | Has Episodes Unmatched | ❌ | ✅ | ❌ | +| `show_unmatched` | Has Shows Unmatched | ❌ | ✅ | ❌ | | `artist_unmatched` | Is Artist's Unmatched | ❌ | ❌ | ✅ | | `album_unmatched` | Is Album's Unmatched | ❌ | ❌ | ✅ | | `track_trash` | Is Track Trashed | ❌ | ❌ | ✅ | diff --git a/modules/plex.py b/modules/plex.py index b05cd20f..d76fa2c1 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -28,6 +28,7 @@ search_translation = { "content_rating": "contentRating", "episode_year": "episode.year", "release": "originallyAvailableAt", + "show_unmatched": "show.unmatched", "episode_unmatched": "episode.unmatched", "episode_duplicate": "episode.duplicate", "added": "addedAt", @@ -209,7 +210,7 @@ searches = [ "critic_rating.gt", "critic_rating.gte", "critic_rating.lt", "critic_rating.lte", "audience_rating.gt", "audience_rating.gte", "audience_rating.lt", "audience_rating.lte", "year", "year.not", "year.gt", "year.gte", "year.lt", "year.lte", - "unplayed_episodes", "episode_unplayed", "episode_duplicate", "episode_progress", "episode_unmatched", + "unplayed_episodes", "episode_unplayed", "episode_duplicate", "episode_progress", "episode_unmatched", "show_unmatched", "episode_title", "episode_title.not", "episode_title.is", "episode_title.isnot", "episode_title.begins", "episode_title.ends", "episode_added", "episode_added.not", "episode_added.before", "episode_added.after", "episode_air_date", "episode_air_date.not", "episode_air_date.before", "episode_air_date.after", @@ -243,7 +244,7 @@ show_only_searches = [ "episode_plays.gt", "episode_plays.gte", "episode_plays.lt", "episode_plays.lte", "episode_user_rating.gt", "episode_user_rating.gte", "episode_user_rating.lt", "episode_user_rating.lte", "episode_year", "episode_year.not", "episode_year.gt", "episode_year.gte", "episode_year.lt", "episode_year.lte", - "unplayed_episodes", "episode_unplayed", "episode_duplicate", "episode_progress", "episode_unmatched", + "unplayed_episodes", "episode_unplayed", "episode_duplicate", "episode_progress", "episode_unmatched", "show_unmatched", ] string_attributes = ["title", "studio", "episode_title", "artist_title", "album_title", "album_record_label", "track_title"] float_attributes = [ @@ -252,7 +253,7 @@ float_attributes = [ ] boolean_attributes = [ "hdr", "unmatched", "duplicate", "unplayed", "progress", "trash", "unplayed_episodes", "episode_unplayed", - "episode_duplicate", "episode_progress", "episode_unmatched", "artist_unmatched", "album_unmatched", "track_trash" + "episode_duplicate", "episode_progress", "episode_unmatched", "show_unmatched", "artist_unmatched", "album_unmatched", "track_trash" ] tmdb_attributes = ["actor", "director", "producer", "writer"] date_attributes = [