Skip to content

Commit

Permalink
Update alexa.py
Browse files Browse the repository at this point in the history
Changed the way the kodi-voice library worked. It'll always provide a default of english now.
  • Loading branch information
m0ngr31 authored Jul 28, 2018
1 parent c65f610 commit 67e8d95
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions alexa.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,13 @@
app.config['ASK_APPLICATION_ID'] = os.getenv('MEDIA_CENTER_SKILL_ID')

LANGUAGE = config.get('global', 'language')
if !LANGUAGE or LANGUAGE == 'None':
LANGUAGE = 'en'
if LANGUAGE == 'en':
TEMPLATE_FILE = "templates.en.yaml"
elif LANGUAGE == 'de':
if LANGUAGE == 'de':
TEMPLATE_FILE = "templates.de.yaml"
elif LANGUAGE == 'fr':
TEMPLATE_FILE = "templates.fr.yaml"
else:
LANGUAGE = 'en'
TEMPLATE_FILE = "templates.en.yaml"

# According to this: https://alexatutorial.com/flask-ask/configuration.html
# Timestamp based verification shouldn't be used in production. Use at own risk
Expand Down

0 comments on commit 67e8d95

Please sign in to comment.