added getServerId to allow for Plex machineIdentifier
This commit is contained in:
parent
72b3b49b6e
commit
2d84c39be5
1 changed files with 9 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue