From 7dbc02514cb8352702841121499941dcd463c08f Mon Sep 17 00:00:00 2001 From: Josh Wood Date: Sun, 11 Nov 2018 10:32:15 -0600 Subject: [PATCH] (feat): allow MusicSection search by track.userRating and sort by userRating --- plexapi/library.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexapi/library.py b/plexapi/library.py index ae3e38e6..84063e97 100644 --- a/plexapi/library.py +++ b/plexapi/library.py @@ -776,8 +776,8 @@ class MusicSection(LibrarySection): TAG (str): 'Directory' TYPE (str): 'artist' """ - ALLOWED_FILTERS = ('genre', 'country', 'collection', 'mood') - ALLOWED_SORT = ('addedAt', 'lastViewedAt', 'viewCount', 'titleSort') + ALLOWED_FILTERS = ('genre', 'country', 'collection', 'mood', 'track.userRating') + ALLOWED_SORT = ('addedAt', 'lastViewedAt', 'viewCount', 'titleSort', 'userRating') TAG = 'Directory' TYPE = 'artist'