added getServerId to allow for Plex machineIdentifier

This commit is contained in:
tomkat83 2015-12-27 12:23:59 +01:00
parent 72b3b49b6e
commit 2d84c39be5

View file

@ -137,6 +137,15 @@ class UserClient(threading.Thread):
elif not prefix:
return server
def getServerId(self):
alternate = utils.settings('altip') == "true"
if alternate:
# Alternate host
serverId = utils.settings('secondserverid')
else:
serverId = utils.settings('serverid')
return serverId
def getToken(self):
username = self.getUsername()