Update server version before checking for server updates
This commit is contained in:
@@ -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()
|
Reference in New Issue
Block a user