mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-25 13:10:17 +00:00
more more
This commit is contained in:
parent
7c2395a75e
commit
6735ecc123
3 changed files with 2 additions and 7 deletions
|
@ -5,6 +5,7 @@ exclude_lines =
|
||||||
raise Unsupported
|
raise Unsupported
|
||||||
raise Exception
|
raise Exception
|
||||||
except ImportError
|
except ImportError
|
||||||
|
except BadRequest
|
||||||
def __repr__
|
def __repr__
|
||||||
def __bool__
|
def __bool__
|
||||||
def __iter__
|
def __iter__
|
||||||
|
|
|
@ -47,7 +47,7 @@ class AlertListener(threading.Thread):
|
||||||
""" Called when websocket message is recieved. """
|
""" Called when websocket message is recieved. """
|
||||||
try:
|
try:
|
||||||
data = json.loads(message)['NotificationContainer']
|
data = json.loads(message)['NotificationContainer']
|
||||||
log.debug('Alert: %s', data)
|
log.debug('Alert: %s %s %s', *data)
|
||||||
if self._callback:
|
if self._callback:
|
||||||
self._callback(data)
|
self._callback(data)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
|
|
|
@ -155,12 +155,6 @@ def test_server_createPlayQueue(plex, movie):
|
||||||
assert playqueue.playQueueShuffled is True
|
assert playqueue.playQueueShuffled is True
|
||||||
|
|
||||||
|
|
||||||
def _test_server_createPlaylist():
|
|
||||||
# TODO: Implement _test_server_createPlaylist()
|
|
||||||
# see test_playlists.py
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
def test_server_client_not_found(plex):
|
def test_server_client_not_found(plex):
|
||||||
with pytest.raises(NotFound):
|
with pytest.raises(NotFound):
|
||||||
plex.client('<This-client-should-not-be-found>')
|
plex.client('<This-client-should-not-be-found>')
|
||||||
|
|
Loading…
Reference in a new issue