mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 06:04:15 +00:00
init check for update.
This commit is contained in:
parent
36630d7448
commit
67468578bf
1 changed files with 7 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue