mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-23 04:03:05 +00:00
Cleanup doc strings
This commit is contained in:
parent
7abd569bd7
commit
765314c252
1 changed files with 3 additions and 12 deletions
|
@ -279,14 +279,11 @@ class PlexServer(PlexObject):
|
|||
return filepath
|
||||
|
||||
def check_for_update(self, force=True, download=False):
|
||||
"""Get release info.
|
||||
""" Returns a :class:`~plexapi.base.Release` object containing release info.
|
||||
|
||||
Parameters:
|
||||
force (bool): Force server to check for new releases
|
||||
download (bool): Download if a update is available.
|
||||
|
||||
Returns: :class:`~plexapi.base.Release` object.
|
||||
|
||||
"""
|
||||
part = '/updater/check?download=%s' % (1 if download else 0)
|
||||
if force:
|
||||
|
@ -294,21 +291,15 @@ class PlexServer(PlexObject):
|
|||
return self.fetchItem('/updater/status')
|
||||
|
||||
def isLatest(self):
|
||||
"""Check if the installed version of PMS is the latest.
|
||||
Returns: bool
|
||||
"""
|
||||
""" Check if the installed version of PMS is the latest. """
|
||||
release = self.check_for_update(force=True)
|
||||
return bool(release.version == self.version)
|
||||
|
||||
def installUpdate(self):
|
||||
"""Install the newest version of pms.
|
||||
Returns: None
|
||||
"""
|
||||
|
||||
""" Install the newest version of pms. """
|
||||
# We can add this but dunno how useful this is since it sometimes
|
||||
# requires user action using a gui.
|
||||
part = 'updater/apply'
|
||||
|
||||
release = self.check_for_update(force=True, download=True)
|
||||
if release and release.version != pms.version:
|
||||
# figure out what method this is..
|
||||
|
|
Loading…
Reference in a new issue