Code refactoring
This commit is contained in:
parent
ba83bd29fc
commit
0a835d7449
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue