mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 03:33:08 +00:00
correct new webShows method
This commit is contained in:
parent
88b5016fb8
commit
e399e54d6a
1 changed files with 4 additions and 2 deletions
|
@ -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`
|
||||
|
|
Loading…
Reference in a new issue