Merge pull request #318 from jmlw/master

Allow MusicSection search by track.userRating and sort by userRating
This commit is contained in:
Hellowlol 2018-12-05 21:45:35 +01:00 committed by GitHub
commit 15827022f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'