mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-13 21:56:11 +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")
|
raise AttributeError("Request cannot be empty")
|
||||||
|
|
||||||
data = self._request(data)
|
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)
|
retry = data.pop('retry', 5)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|
|
@ -75,6 +75,9 @@ class Monitor(xbmc.Monitor):
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
if not data.get('ServerId'):
|
||||||
|
raise Exception("ServerId undefined.")
|
||||||
|
|
||||||
if method != 'LoadServer' and data['ServerId'] not in self.servers:
|
if method != 'LoadServer' and data['ServerId'] not in self.servers:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue