From 715513cdb3a7f0ce5bc9547284272bff3f8e3f0c Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sun, 5 Mar 2017 15:48:08 +0100 Subject: [PATCH] Fix spelling --- resources/lib/websocket_client.py | 8 ++++---- service.py | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/resources/lib/websocket_client.py b/resources/lib/websocket_client.py index 4ec703fc..7ded4456 100644 --- a/resources/lib/websocket_client.py +++ b/resources/lib/websocket_client.py @@ -211,9 +211,9 @@ class PMS_Websocket(WebSocket): window('plex_online', value='false') -class Alexia_Websocket(WebSocket): +class Alexa_Websocket(WebSocket): """ - Websocket connection to talk to Amazon Alexia + Websocket connection to talk to Amazon Alexa """ def getUri(self): self.plex_client_Id = window('plex_client_Id') @@ -228,7 +228,7 @@ class Alexia_Websocket(WebSocket): def process(self, opcode, message): if opcode not in self.opcode_data: return False - log.debug('Received the following message from Alexia:') + log.debug('Received the following message from Alexa:') log.debug(message) try: message = etree.fromstring(message) @@ -242,7 +242,7 @@ class Alexia_Websocket(WebSocket): log.error('Unknown Alexa message received') return False except: - log.error('Could not parse Alexia message') + log.error('Could not parse Alexa message') return False process_command(message.attrib['path'][1:], message.attrib, diff --git a/service.py b/service.py index b9afc73d..6b23706f 100644 --- a/service.py +++ b/service.py @@ -36,7 +36,7 @@ import initialsetup from kodimonitor import KodiMonitor from librarysync import LibrarySync import videonodes -from websocket_client import PMS_Websocket, Alexia_Websocket +from websocket_client import PMS_Websocket, Alexa_Websocket import downloadutils from playqueue import Playqueue @@ -70,7 +70,7 @@ class Service(): user_running = False ws_running = False - alexia_running = False + alexa_running = False library_running = False plexCompanion_running = False playqueue_running = False @@ -150,7 +150,7 @@ class Service(): # Initialize important threads, handing over self for callback purposes self.user = UserClient(self) self.ws = PMS_Websocket(self) - self.alexia = Alexia_Websocket(self) + self.alexa = Alexa_Websocket(self) self.library = LibrarySync(self) self.plexCompanion = PlexCompanion(self) self.playqueue = Playqueue(self) @@ -203,10 +203,10 @@ class Service(): if not self.ws_running: self.ws_running = True self.ws.start() - # Start the Alexia thread - if not self.alexia_running: - self.alexia_running = True - self.alexia.start() + # Start the Alexa thread + if not self.alexa_running: + self.alexa_running = True + self.alexa.start() # Start the syncing thread if not self.library_running: self.library_running = True @@ -333,7 +333,7 @@ class Service(): except: log.warn('Websocket client already shut down') try: - self.alexia.stopThread() + self.alexa.stopThread() except: log.warn('Websocket client already shut down') try: