From 775f90ceae251098d21e9399044b2c90bde218e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20Bjurstr=C3=B6m?= Date: Sun, 28 Jun 2020 15:20:54 +0200 Subject: [PATCH] library: add unmatched as a filter for Movies and Show Sections --- plexapi/library.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plexapi/library.py b/plexapi/library.py index 397f5c2ef..1a441b8b9 100644 --- a/plexapi/library.py +++ b/plexapi/library.py @@ -748,7 +748,7 @@ class MovieSection(LibrarySection): Attributes: ALLOWED_FILTERS (list): List of allowed search filters. ('unwatched', 'duplicate', 'year', 'decade', 'genre', 'contentRating', 'collection', - 'director', 'actor', 'country', 'studio', 'resolution', 'guid', 'label') + 'director', 'actor', 'country', 'studio', 'resolution', 'guid', 'label', 'unmatched') ALLOWED_SORT (list): List of allowed sorting keys. ('addedAt', 'originallyAvailableAt', 'lastViewedAt', 'titleSort', 'rating', 'mediaHeight', 'duration') @@ -758,7 +758,7 @@ class MovieSection(LibrarySection): ALLOWED_FILTERS = ('unwatched', 'duplicate', 'year', 'decade', 'genre', 'contentRating', 'collection', 'director', 'actor', 'country', 'studio', 'resolution', 'guid', 'label', 'writer', 'producer', 'subtitleLanguage', 'audioLanguage', - 'lastViewedAt', 'viewCount', 'addedAt') + 'lastViewedAt', 'viewCount', 'addedAt', 'unmatched') ALLOWED_SORT = ('addedAt', 'originallyAvailableAt', 'lastViewedAt', 'titleSort', 'rating', 'mediaHeight', 'duration') TAG = 'Directory' @@ -813,7 +813,7 @@ class ShowSection(LibrarySection): ALLOWED_FILTERS (list): List of allowed search filters. ('unwatched', 'year', 'genre', 'contentRating', 'network', 'collection', 'guid', 'label') ALLOWED_SORT (list): List of allowed sorting keys. ('addedAt', 'lastViewedAt', - 'originallyAvailableAt', 'titleSort', 'rating', 'unwatched') + 'originallyAvailableAt', 'titleSort', 'rating', 'unwatched', 'unmatched') TAG (str): 'Directory' TYPE (str): 'show' """ @@ -822,7 +822,7 @@ class ShowSection(LibrarySection): 'show.viewCount', 'show.lastViewedAt', 'show.actor', 'show.addedAt', 'episode.title', 'episode.originallyAvailableAt', 'episode.resolution', 'episode.subtitleLanguage', 'episode.unwatched', 'episode.addedAt', 'episode.userRating', 'episode.viewCount', - 'episode.lastViewedAt') + 'episode.lastViewedAt', 'unmatched') ALLOWED_SORT = ('addedAt', 'lastViewedAt', 'originallyAvailableAt', 'titleSort', 'rating', 'unwatched') TAG = 'Directory'