only update if all is in the url

This commit is contained in:
Hellowlol 2020-04-27 00:14:00 +03:00
parent db1f9a9b39
commit 0647c714a3

View file

@ -378,7 +378,9 @@ class LibrarySection(PlexObject):
raise BadRequest('ekey was not provided')
data = self._server.query(ekey, params=url_kw)
self._total_size = utils.cast(int, data.attrib.get("totalSize"))
if '/all' in ekey:
self._total_size = utils.cast(int, data.attrib.get("totalSize"))
items = self.findItems(data, cls, ekey, **kwargs)
librarySectionID = data.attrib.get('librarySectionID')