mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Update server version before checking for server updates
This commit is contained in:
parent
2fec2c9e4c
commit
495659e9cd
2 changed files with 10 additions and 0 deletions
|
@ -615,6 +615,9 @@ class PlexTV(object):
|
|||
return clean_servers
|
||||
|
||||
def get_plex_downloads(self):
|
||||
logger.debug(u"PlexPy PlexTV :: Updating current server version.")
|
||||
pmsconnect.PmsConnect().set_server_version()
|
||||
|
||||
logger.debug(u"PlexPy PlexTV :: Plex update channel is %s." % plexpy.CONFIG.PMS_UPDATE_CHANNEL)
|
||||
plex_downloads = self.get_plextv_downloads(plexpass=(plexpy.CONFIG.PMS_UPDATE_CHANNEL == 'plexpass'))
|
||||
|
||||
|
|
|
@ -2190,3 +2190,10 @@ class PmsConnect(object):
|
|||
}
|
||||
|
||||
return updater_info
|
||||
|
||||
def set_server_version(self):
|
||||
identity = self.get_server_identity()
|
||||
version = identity.get('version', plexpy.CONFIG.PMS_VERSION)
|
||||
|
||||
plexpy.CONFIG.__setattr__('PMS_VERSION', version)
|
||||
plexpy.CONFIG.write()
|
Loading…
Add table
Add a link
Reference in a new issue