Fix server detection in monitor

This commit is contained in:
angelblue05 2018-10-01 02:27:19 -05:00
parent cd519d5c28
commit fa58296c75
2 changed files with 4 additions and 1 deletions

View file

@ -83,7 +83,7 @@ class HTTP(object):
raise AttributeError("Request cannot be empty")
data = self._request(data)
LOG.info("--->[ http ] %s", json.dumps(data, indent=4))
LOG.debug("--->[ http ] %s", json.dumps(data, indent=4))
retry = data.pop('retry', 5)
while True:

View file

@ -75,6 +75,9 @@ class Monitor(xbmc.Monitor):
return
try:
if not data.get('ServerId'):
raise Exception("ServerId undefined.")
if method != 'LoadServer' and data['ServerId'] not in self.servers:
try: