Skip to content

Commit b68ace1

Browse files
committed
Fix some typos
1 parent 8e64048 commit b68ace1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

plexapi/alert.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77

88
class AlertListener(threading.Thread):
9-
""" Creates a websocket connection to the PlexServer to optionally recieve alert notifications.
9+
""" Creates a websocket connection to the PlexServer to optionally receive alert notifications.
1010
These often include messages from Plex about media scans as well as updates to currently running
11-
Transcode Sessions. This class implements threading.Thread, therfore to start monitoring
11+
Transcode Sessions. This class implements threading.Thread, therefore to start monitoring
1212
alerts you must call .start() on the object once it's created. When calling
1313
`PlexServer.startAlertListener()`, the thread will be started for you.
1414
@@ -26,9 +26,9 @@ class AlertListener(threading.Thread):
2626
2727
Parameters:
2828
server (:class:`~plexapi.server.PlexServer`): PlexServer this listener is connected to.
29-
callback (func): Callback function to call on recieved messages. The callback function
29+
callback (func): Callback function to call on received messages. The callback function
3030
will be sent a single argument 'data' which will contain a dictionary of data
31-
recieved from the server. :samp:`def my_callback(data): ...`
31+
received from the server. :samp:`def my_callback(data): ...`
3232
"""
3333
key = '/:/websockets/notifications'
3434

@@ -48,15 +48,15 @@ def run(self):
4848
self._ws.run_forever()
4949

5050
def stop(self):
51-
""" Stop the AlertListener thread. Once the notifier is stopped, it cannot be diractly
51+
""" Stop the AlertListener thread. Once the notifier is stopped, it cannot be directly
5252
started again. You must call :func:`plexapi.server.PlexServer.startAlertListener()`
5353
from a PlexServer instance.
5454
"""
5555
log.info('Stopping AlertListener.')
5656
self._ws.close()
5757

5858
def _onMessage(self, *args):
59-
""" Called when websocket message is recieved.
59+
""" Called when websocket message is received.
6060
In earlier releases, websocket-client returned a tuple of two parameters: a websocket.app.WebSocketApp object
6161
and the message as a STR. Current releases appear to only return the message.
6262
We are assuming the last argument in the tuple is the message.
@@ -72,7 +72,7 @@ def _onMessage(self, *args):
7272
log.error('AlertListener Msg Error: %s', err)
7373

7474
def _onError(self, *args): # pragma: no cover
75-
""" Called when websocket error is recieved.
75+
""" Called when websocket error is received.
7676
In earlier releases, websocket-client returned a tuple of two parameters: a websocket.app.WebSocketApp object
7777
and the error. Current releases appear to only return the error.
7878
We are assuming the last argument in the tuple is the message.

0 commit comments

Comments
 (0)