mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 11:43:13 +00:00
correct new news method
This commit is contained in:
parent
e399e54d6a
commit
6469e68070
1 changed files with 4 additions and 2 deletions
|
@ -633,10 +633,12 @@ class MyPlexAccount(PlexObject):
|
|||
elem = ElementTree.fromstring(req.text)
|
||||
return self.findItems(elem)
|
||||
|
||||
def news(self, maxresults=50):
|
||||
def news(self):
|
||||
""" Returns a list of News Hub items :class:`~plexapi.library.Hub`
|
||||
"""
|
||||
return self.batchingItems(self.NEWS, maxresults)
|
||||
req = requests.get(self.NEWS, headers={'X-Plex-Token':self._token})
|
||||
elem = ElementTree.fromstring(req.text)
|
||||
return self.findItems(elem)
|
||||
|
||||
def podcasts(self, maxresults=50):
|
||||
""" Returns a list of Podcasts Hub items :class:`~plexapi.library.Hub`
|
||||
|
|
Loading…
Reference in a new issue