mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 03:33:08 +00:00
Fix matching sort key
This commit is contained in:
parent
1b8e476e96
commit
89e6d2d6f3
1 changed files with 1 additions and 2 deletions
|
@ -904,8 +904,7 @@ class LibrarySection(PlexObject):
|
|||
libtype = _libtype or libtype or self.TYPE
|
||||
|
||||
try:
|
||||
filterSort = next(f for f in self.listSorts(libtype)
|
||||
if ',' not in f.key and f.key.split('.')[-1] == sortField)
|
||||
filterSort = next(f for f in self.listSorts(libtype) if f.key == sortField)
|
||||
except StopIteration:
|
||||
availableSorts = [f.key for f in self.listSorts(libtype)]
|
||||
raise NotFound('Unknown sort field "%s" for libtype "%s". '
|
||||
|
|
Loading…
Reference in a new issue