mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 14:14:19 +00:00
Speed up Library Get
The original code pull a full list of all library items and then searched that list. With this change, the library get uses the title as a search filter such that the returned list is much shorter.
This commit is contained in:
parent
97903cf189
commit
442c55a03a
1 changed files with 1 additions and 1 deletions
|
@ -374,7 +374,7 @@ class LibrarySection(PlexObject):
|
|||
Parameters:
|
||||
title (str): Title of the item to return.
|
||||
"""
|
||||
key = '/library/sections/%s/all' % self.key
|
||||
key = '/library/sections/%s/all?title=%s' % (self.key, title)
|
||||
return self.fetchItem(key, title__iexact=title)
|
||||
|
||||
def all(self, sort=None, **kwargs):
|
||||
|
|
Loading…
Reference in a new issue