mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 03:33:08 +00:00
Pass remaining filtered kwargs to LibrarySection.search()
This commit is contained in:
parent
1d0527bd7e
commit
473b7aae65
1 changed files with 7 additions and 3 deletions
|
@ -669,8 +669,12 @@ class LibrarySection(PlexObject):
|
|||
"""
|
||||
# cleanup the core arguments
|
||||
args = {}
|
||||
for category, value in kwargs.items():
|
||||
args[category] = self._cleanSearchFilter(category, value, libtype)
|
||||
for category, value in list(kwargs.items()):
|
||||
try:
|
||||
args[category] = self._cleanSearchFilter(category, value, libtype)
|
||||
del kwargs[category]
|
||||
except BadRequest:
|
||||
continue
|
||||
if title is not None:
|
||||
args['title'] = title
|
||||
if sort is not None:
|
||||
|
@ -687,7 +691,7 @@ class LibrarySection(PlexObject):
|
|||
while True:
|
||||
key = '/library/sections/%s/all%s' % (self.key, utils.joinArgs(args))
|
||||
subresults = self.fetchItems(key, container_start=container_start,
|
||||
container_size=container_size)
|
||||
container_size=container_size, **kwargs)
|
||||
if not len(subresults):
|
||||
if offset > self.totalSize:
|
||||
log.info("container_start is higher then the number of items in the library")
|
||||
|
|
Loading…
Reference in a new issue