Code refactoring

This commit is contained in:
tomkat83 2017-04-30 17:35:51 +02:00
parent ba83bd29fc
commit 0a835d7449

View file

@ -407,11 +407,9 @@ class InitialSetup():
# If a Plex server IP has already been set # If a Plex server IP has already been set
# return only if the right machine identifier is found # return only if the right machine identifier is found
getNewIP = False
if self.server: if self.server:
log.info("PMS is already set: %s. Checking now..." % self.server) log.info("PMS is already set: %s. Checking now..." % self.server)
getNewIP = not self.CheckPMS() if self.CheckPMS():
if getNewIP is False:
log.info("Using PMS %s with machineIdentifier %s" log.info("Using PMS %s with machineIdentifier %s"
% (self.server, self.serverid)) % (self.server, self.serverid))
self._write_PMS_settings(self.server, self.pms_token) self._write_PMS_settings(self.server, self.pms_token)