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
# return only if the right machine identifier is found
getNewIP = False
if self.server:
log.info("PMS is already set: %s. Checking now..." % self.server)
getNewIP = not self.CheckPMS()
if getNewIP is False:
if self.CheckPMS():
log.info("Using PMS %s with machineIdentifier %s"
% (self.server, self.serverid))
self._write_PMS_settings(self.server, self.pms_token)