mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Fix empty results due to error 500
This commit is contained in:
parent
45eb2aac60
commit
e17445b574
2 changed files with 6 additions and 5 deletions
|
@ -243,7 +243,7 @@ def _get_items(query, server_id=None):
|
||||||
|
|
||||||
params['StartIndex'] = index
|
params['StartIndex'] = index
|
||||||
params['Limit'] = LIMIT
|
params['Limit'] = LIMIT
|
||||||
result = _get(url, params, server_id=server_id)
|
result = _get(url, params, server_id=server_id) or {'Items': []}
|
||||||
|
|
||||||
items['Items'].extend(result['Items'])
|
items['Items'].extend(result['Items'])
|
||||||
items['RestorePoint'] = query
|
items['RestorePoint'] = query
|
||||||
|
@ -320,7 +320,7 @@ class TheVoid(object):
|
||||||
raise Exception("unexpected data format")
|
raise Exception("unexpected data format")
|
||||||
|
|
||||||
data['VoidName'] = str(create_id())
|
data['VoidName'] = str(create_id())
|
||||||
LOG.info("---[ contact mothership/%s ]", method)
|
LOG.info("---[ contact MU-TH-UR 6000/%s ]", method)
|
||||||
LOG.debug(data)
|
LOG.debug(data)
|
||||||
|
|
||||||
event(method, data)
|
event(method, data)
|
||||||
|
@ -335,7 +335,7 @@ class TheVoid(object):
|
||||||
|
|
||||||
if response != "":
|
if response != "":
|
||||||
|
|
||||||
LOG.debug("--<[ beacon/emby_%s.json ]", self.data['VoidName'])
|
LOG.debug("--<[ nostromo/emby_%s.json ]", self.data['VoidName'])
|
||||||
window('emby_%s' % self.data['VoidName'], clear=True)
|
window('emby_%s' % self.data['VoidName'], clear=True)
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
@ -346,6 +346,7 @@ class TheVoid(object):
|
||||||
return default
|
return default
|
||||||
|
|
||||||
xbmc.sleep(100)
|
xbmc.sleep(100)
|
||||||
|
LOG.info("--[ void/%s ]", self.data['VoidName'])
|
||||||
|
|
||||||
def get_objects(src, filename):
|
def get_objects(src, filename):
|
||||||
|
|
||||||
|
|
|
@ -246,7 +246,7 @@ class Monitor(xbmc.Monitor):
|
||||||
def void_responder(self, data, result):
|
def void_responder(self, data, result):
|
||||||
|
|
||||||
window('emby_%s.json' % data['VoidName'], result)
|
window('emby_%s.json' % data['VoidName'], result)
|
||||||
LOG.debug("--->[ beacon/emby_%s.json ] sent", data['VoidName'])
|
LOG.debug("--->[ nostromo/emby_%s.json ] sent", data['VoidName'])
|
||||||
|
|
||||||
def server_instance(self, server_id=None):
|
def server_instance(self, server_id=None):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue