correct new podcasts method

This commit is contained in:
blacktwin 2020-02-06 13:06:26 -05:00
parent 6469e68070
commit 25431b0e9a

View file

@ -640,10 +640,12 @@ class MyPlexAccount(PlexObject):
elem = ElementTree.fromstring(req.text)
return self.findItems(elem)
def podcasts(self, maxresults=50):
def podcasts(self):
""" Returns a list of Podcasts Hub items :class:`~plexapi.library.Hub`
"""
return self.batchingItems(self.PODCASTS, maxresults)
req = requests.get(self.PODCASTS, headers={'X-Plex-Token':self._token})
elem = ElementTree.fromstring(req.text)
return self.findItems(elem)
def tidal(self, maxresults=50):
""" Returns a list of tidal Hub items :class:`~plexapi.library.Hub`