Fix spelling

This commit is contained in:
tomkat83 2017-03-05 15:48:08 +01:00
parent df6d753c18
commit 715513cdb3
2 changed files with 12 additions and 12 deletions

View file

@ -211,9 +211,9 @@ class PMS_Websocket(WebSocket):
window('plex_online', value='false') 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): def getUri(self):
self.plex_client_Id = window('plex_client_Id') self.plex_client_Id = window('plex_client_Id')
@ -228,7 +228,7 @@ class Alexia_Websocket(WebSocket):
def process(self, opcode, message): def process(self, opcode, message):
if opcode not in self.opcode_data: if opcode not in self.opcode_data:
return False return False
log.debug('Received the following message from Alexia:') log.debug('Received the following message from Alexa:')
log.debug(message) log.debug(message)
try: try:
message = etree.fromstring(message) message = etree.fromstring(message)
@ -242,7 +242,7 @@ class Alexia_Websocket(WebSocket):
log.error('Unknown Alexa message received') log.error('Unknown Alexa message received')
return False return False
except: except:
log.error('Could not parse Alexia message') log.error('Could not parse Alexa message')
return False return False
process_command(message.attrib['path'][1:], process_command(message.attrib['path'][1:],
message.attrib, message.attrib,

View file

@ -36,7 +36,7 @@ import initialsetup
from kodimonitor import KodiMonitor from kodimonitor import KodiMonitor
from librarysync import LibrarySync from librarysync import LibrarySync
import videonodes import videonodes
from websocket_client import PMS_Websocket, Alexia_Websocket from websocket_client import PMS_Websocket, Alexa_Websocket
import downloadutils import downloadutils
from playqueue import Playqueue from playqueue import Playqueue
@ -70,7 +70,7 @@ class Service():
user_running = False user_running = False
ws_running = False ws_running = False
alexia_running = False alexa_running = False
library_running = False library_running = False
plexCompanion_running = False plexCompanion_running = False
playqueue_running = False playqueue_running = False
@ -150,7 +150,7 @@ class Service():
# Initialize important threads, handing over self for callback purposes # Initialize important threads, handing over self for callback purposes
self.user = UserClient(self) self.user = UserClient(self)
self.ws = PMS_Websocket(self) self.ws = PMS_Websocket(self)
self.alexia = Alexia_Websocket(self) self.alexa = Alexa_Websocket(self)
self.library = LibrarySync(self) self.library = LibrarySync(self)
self.plexCompanion = PlexCompanion(self) self.plexCompanion = PlexCompanion(self)
self.playqueue = Playqueue(self) self.playqueue = Playqueue(self)
@ -203,10 +203,10 @@ class Service():
if not self.ws_running: if not self.ws_running:
self.ws_running = True self.ws_running = True
self.ws.start() self.ws.start()
# Start the Alexia thread # Start the Alexa thread
if not self.alexia_running: if not self.alexa_running:
self.alexia_running = True self.alexa_running = True
self.alexia.start() self.alexa.start()
# Start the syncing thread # Start the syncing thread
if not self.library_running: if not self.library_running:
self.library_running = True self.library_running = True
@ -333,7 +333,7 @@ class Service():
except: except:
log.warn('Websocket client already shut down') log.warn('Websocket client already shut down')
try: try:
self.alexia.stopThread() self.alexa.stopThread()
except: except:
log.warn('Websocket client already shut down') log.warn('Websocket client already shut down')
try: try: