Skip to content

Commit db1f9a9

Browse files
committed
use cast
1 parent 66df034 commit db1f9a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plexapi/library.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ 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 = int(data.attrib.get("totalSize"))
381+
self._total_size = utils.cast(int, data.attrib.get("totalSize"))
382382
items = self.findItems(data, cls, ekey, **kwargs)
383383

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

0 commit comments

Comments
 (0)