From e399e54d6a62f45a191d30f872b3dd03ec20a016 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Thu, 6 Feb 2020 13:05:50 -0500 Subject: [PATCH] correct new webShows method --- plexapi/myplex.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plexapi/myplex.py b/plexapi/myplex.py index 3108342f..af37c6d8 100644 --- a/plexapi/myplex.py +++ b/plexapi/myplex.py @@ -626,10 +626,12 @@ class MyPlexAccount(PlexObject): elem = ElementTree.fromstring(req.text) return self.findItems(elem) - def webShows(self, maxresults=50): + def webShows(self): """ Returns a list of Webshow Hub items :class:`~plexapi.library.Hub` """ - return self.batchingItems(self.WEBSHOWS, maxresults) + req = requests.get(self.WEBSHOWS, headers={'X-Plex-Token':self._token}) + elem = ElementTree.fromstring(req.text) + return self.findItems(elem) def news(self, maxresults=50): """ Returns a list of News Hub items :class:`~plexapi.library.Hub`