mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-12 23:17:07 +00:00
Update websocket-client
This commit is contained in:
parent
b84fd45719
commit
c3f535d64a
3 changed files with 6 additions and 4 deletions
|
@ -55,7 +55,8 @@ class AlertListener(threading.Thread):
|
||||||
log.info('Stopping AlertListener.')
|
log.info('Stopping AlertListener.')
|
||||||
self._ws.close()
|
self._ws.close()
|
||||||
|
|
||||||
def _onMessage(self, ws, message):
|
def _onMessage(self, *args):
|
||||||
|
message = args[-1]
|
||||||
""" Called when websocket message is recieved. """
|
""" Called when websocket message is recieved. """
|
||||||
try:
|
try:
|
||||||
data = json.loads(message)['NotificationContainer']
|
data = json.loads(message)['NotificationContainer']
|
||||||
|
@ -65,6 +66,7 @@ class AlertListener(threading.Thread):
|
||||||
except Exception as err: # pragma: no cover
|
except Exception as err: # pragma: no cover
|
||||||
log.error('AlertListener Msg Error: %s', err)
|
log.error('AlertListener Msg Error: %s', err)
|
||||||
|
|
||||||
def _onError(self, ws, err): # pragma: no cover
|
def _onError(self, *args): # pragma: no cover
|
||||||
|
err = args[-1]
|
||||||
""" Called when websocket error is recieved. """
|
""" Called when websocket error is recieved. """
|
||||||
log.error('AlertListener Error: %s' % err)
|
log.error('AlertListener Error: %s' % err)
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
#---------------------------------------------------------
|
#---------------------------------------------------------
|
||||||
requests
|
requests
|
||||||
tqdm
|
tqdm
|
||||||
websocket-client==0.48.0
|
websocket-client
|
||||||
|
|
|
@ -14,7 +14,7 @@ requests
|
||||||
sphinx
|
sphinx
|
||||||
sphinxcontrib-napoleon
|
sphinxcontrib-napoleon
|
||||||
tqdm
|
tqdm
|
||||||
websocket-client==0.48.0
|
websocket-client
|
||||||
|
|
||||||
# Installing sphinx-rtd-theme directly from github above is used until a point release
|
# Installing sphinx-rtd-theme directly from github above is used until a point release
|
||||||
# above 0.4.3 is released. https://github.com/readthedocs/sphinx_rtd_theme/issues/739
|
# above 0.4.3 is released. https://github.com/readthedocs/sphinx_rtd_theme/issues/739
|
||||||
|
|
Loading…
Reference in a new issue