client.py - remove "websocket" and __getitem__ & ws_client.py - remove __shortcuts__

This commit is contained in:
TrueTechy 2019-09-08 02:59:24 +01:00
commit db99ab4973
2 changed files with 0 additions and 18 deletions

View file

@ -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

View file

@ -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: