mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-11-11 02:46:34 +00:00
client.py - remove "websocket" and __getitem__ & ws_client.py - remove __shortcuts__
This commit is contained in:
parent
09b1118574
commit
db99ab4973
2 changed files with 0 additions and 18 deletions
|
|
@ -81,11 +81,3 @@ class JellyfinClient(object):
|
||||||
|
|
||||||
self.wsc.stop_client()
|
self.wsc.stop_client()
|
||||||
self.http.stop_session()
|
self.http.stop_session()
|
||||||
|
|
||||||
def __getitem__(self, key):
|
|
||||||
LOG.debug("__getitem__(%r)", key)
|
|
||||||
|
|
||||||
if key.startswith('websocket'):
|
|
||||||
return self.wsc.__shortcuts__(key.replace('websocket/', "", 1))
|
|
||||||
|
|
||||||
return
|
|
||||||
|
|
|
||||||
|
|
@ -30,16 +30,6 @@ class WSClient(threading.Thread):
|
||||||
self.client = client
|
self.client = client
|
||||||
threading.Thread.__init__(self)
|
threading.Thread.__init__(self)
|
||||||
|
|
||||||
def __shortcuts__(self, key):
|
|
||||||
LOG.debug("__shortcuts__(%r)", key)
|
|
||||||
|
|
||||||
if key == "send":
|
|
||||||
return self.send
|
|
||||||
elif key == "stop":
|
|
||||||
return self.stop_client()
|
|
||||||
|
|
||||||
return
|
|
||||||
|
|
||||||
def send(self, message, data=""):
|
def send(self, message, data=""):
|
||||||
|
|
||||||
if self.wsc is None:
|
if self.wsc is None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue