Skip to content

Commit 0647c71

Browse files
committed
only update if all is in the url
1 parent db1f9a9 commit 0647c71

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plexapi/library.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,9 @@ def fetchItems(self, ekey, cls=None, **kwargs):
378378
raise BadRequest('ekey was not provided')
379379
data = self._server.query(ekey, params=url_kw)
380380

381-
self._total_size = utils.cast(int, data.attrib.get("totalSize"))
381+
if '/all' in ekey:
382+
self._total_size = utils.cast(int, data.attrib.get("totalSize"))
383+
382384
items = self.findItems(data, cls, ekey, **kwargs)
383385

384386
librarySectionID = data.attrib.get('librarySectionID')

0 commit comments

Comments
 (0)