mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Fix server detection in monitor
This commit is contained in:
parent
cd519d5c28
commit
fa58296c75
2 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue