Skip to content

Commit 1582702

Browse files
authored
Merge pull request #318 from jmlw/master
Allow MusicSection search by track.userRating and sort by userRating
2 parents c2a6e16 + 7dbc025 commit 1582702

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plexapi/library.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,8 +776,8 @@ class MusicSection(LibrarySection):
776776
TAG (str): 'Directory'
777777
TYPE (str): 'artist'
778778
"""
779-
ALLOWED_FILTERS = ('genre', 'country', 'collection', 'mood')
780-
ALLOWED_SORT = ('addedAt', 'lastViewedAt', 'viewCount', 'titleSort')
779+
ALLOWED_FILTERS = ('genre', 'country', 'collection', 'mood', 'track.userRating')
780+
ALLOWED_SORT = ('addedAt', 'lastViewedAt', 'viewCount', 'titleSort', 'userRating')
781781
TAG = 'Directory'
782782
TYPE = 'artist'
783783

0 commit comments

Comments
 (0)