From 88b5016fb879847d1eeeb5e66f96d8a1885b3096 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Thu, 6 Feb 2020 13:05:19 -0500 Subject: [PATCH] correct new videoOnDemand method --- plexapi/myplex.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plexapi/myplex.py b/plexapi/myplex.py index d37ed0f0..3108342f 100644 --- a/plexapi/myplex.py +++ b/plexapi/myplex.py @@ -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`