init check for update.

This commit is contained in:
Hellowlol 2017-07-18 01:34:28 +02:00
parent 36630d7448
commit 67468578bf

View file

@ -278,6 +278,13 @@ class PlexServer(PlexObject):
filepath = utils.download(url, None, savepath, self._session, unpack=unpack)
return filepath
def isLatest(self):
return self.query('/updater/status') # get
def canUpdate(self): # fix names, it just so i dont forget.
# check plexpass
return self.query('/updater/check?download=0') # put
def history(self):
""" Returns a list of media items from watched history. """
return self.fetchItems('/status/sessions/history/all')