correct new webShows method

This commit is contained in:
blacktwin 2020-02-06 13:05:50 -05:00
parent 88b5016fb8
commit e399e54d6a

View file

@ -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`