Skip to content

Commit b129fa3

Browse files
Update isLatest() (#1253)
* Update isLatest() Use the canInstall attribute to determine if the release is the latest build. * use of utils.cast Co-authored-by: JonnyWong16 <[email protected]> --------- Co-authored-by: JonnyWong16 <[email protected]>
1 parent 7ff9e7b commit b129fa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plexapi/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,8 @@ def checkForUpdate(self, force=True, download=False):
630630

631631
def isLatest(self):
632632
""" Check if the installed version of PMS is the latest. """
633-
release = self.checkForUpdate(force=True)
634-
return release is None
633+
release = self.query('/updater/status')
634+
return utils.cast(bool, release.get('canInstall'))
635635

636636
def installUpdate(self):
637637
""" Install the newest version of Plex Media Server. """

0 commit comments

Comments
 (0)