mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 19:53:17 +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
|
libtype = _libtype or libtype or self.TYPE
|
||||||
|
|
||||||
try:
|
try:
|
||||||
filterSort = next(f for f in self.listSorts(libtype)
|
filterSort = next(f for f in self.listSorts(libtype) if f.key == sortField)
|
||||||
if ',' not in f.key and f.key.split('.')[-1] == sortField)
|
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
availableSorts = [f.key for f in self.listSorts(libtype)]
|
availableSorts = [f.key for f in self.listSorts(libtype)]
|
||||||
raise NotFound('Unknown sort field "%s" for libtype "%s". '
|
raise NotFound('Unknown sort field "%s" for libtype "%s". '
|
||||||
|
|
Loading…
Reference in a new issue