mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 03:33:08 +00:00
correct new videoOnDemand method
This commit is contained in:
parent
2d53f5bab8
commit
88b5016fb8
1 changed files with 4 additions and 2 deletions
|
@ -619,10 +619,12 @@ class MyPlexAccount(PlexObject):
|
|||
hist.extend(conn.history(maxresults=maxresults, mindate=mindate, accountID=1))
|
||||
return hist
|
||||
|
||||
def videoOnDemand(self, maxresults=50):
|
||||
def videoOnDemand(self):
|
||||
""" Returns a list of VOD Hub items :class:`~plexapi.library.Hub`
|
||||
"""
|
||||
return self.batchingItems(self.VOD, maxresults)
|
||||
req = requests.get(self.VOD, headers={'X-Plex-Token':self._token})
|
||||
elem = ElementTree.fromstring(req.text)
|
||||
return self.findItems(elem)
|
||||
|
||||
def webShows(self, maxresults=50):
|
||||
""" Returns a list of Webshow Hub items :class:`~plexapi.library.Hub`
|
||||
|
|
Loading…
Reference in a new issue