mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-24 17:01:39 +00:00
Byebye TheVoid
This commit is contained in:
parent
4b8f510325
commit
a009530434
8 changed files with 89 additions and 239 deletions
|
@ -381,43 +381,3 @@ class GetItemWorker(threading.Thread):
|
|||
|
||||
if window('jellyfin_should_stop.bool'):
|
||||
break
|
||||
|
||||
|
||||
class TheVoid(object):
|
||||
|
||||
def __init__(self, method, data):
|
||||
|
||||
''' If you call get, this will block until response is received.
|
||||
This is used to communicate between entrypoints.
|
||||
'''
|
||||
if type(data) != dict:
|
||||
raise Exception("unexpected data format")
|
||||
|
||||
data['VoidName'] = str(create_id())
|
||||
LOG.info("---[ contact MU-TH-UR 6000/%s ]", method)
|
||||
LOG.debug(data)
|
||||
|
||||
event(method, data)
|
||||
self.method = method
|
||||
self.data = data
|
||||
|
||||
def get(self):
|
||||
|
||||
while True:
|
||||
|
||||
response = window('jellyfin_%s.json' % self.data['VoidName'])
|
||||
|
||||
if response != "":
|
||||
|
||||
LOG.debug("--<[ nostromo/jellyfin_%s.json ]", self.data['VoidName'])
|
||||
window('jellyfin_%s' % self.data['VoidName'], clear=True)
|
||||
|
||||
return response
|
||||
|
||||
if window('jellyfin_should_stop.bool'):
|
||||
LOG.info("Abandon mission! A black hole just swallowed [ %s/%s ]", self.method, self.data['VoidName'])
|
||||
|
||||
return
|
||||
|
||||
xbmc.sleep(100)
|
||||
LOG.info("--[ void/%s ]", self.data['VoidName'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue