Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Commit 552ed07

Browse files
committed
fixed crash in installer when system time isn't set properly (#16), removed legacy comments
1 parent 06292e2 commit 552ed07

2 files changed

Lines changed: 6 additions & 16 deletions

File tree

src/main.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -123,20 +123,13 @@ class Player(object):
123123
playlist_last_item = None
124124
progressReportRequired = []
125125

126-
###
127-
# last_playlist = None
128-
###
129-
130126
def __init__(self, config, platform, pHandler): # pylint: disable=redefined-outer-name
131127
self.config = config
132128
self.platform = platform
133129
self.pHandler = pHandler # pylint: disable=invalid-name
134130
self.tunein_parser = tunein.TuneIn(5000)
135131

136132
def play_playlist(self, payload):
137-
###
138-
# self.last_playlist = payload
139-
###
140133
self.navigation_token = payload['navigationToken']
141134
self.playlist_last_item = payload['audioItem']['streams'][-1]['streamId']
142135

@@ -563,15 +556,6 @@ def process_response(response):
563556

564557
logger.debug("new volume = %s", volume)
565558

566-
'''
567-
This causes a deadlock on triggers
568-
### Resume playing the last station after setting volume
569-
if player.last_playlist is not None:
570-
player.play_playlist(player.last_playlist)
571-
###
572-
'''
573-
574-
575559
# Additional Audio Iten
576560
elif 'audioItem' in j['messageBody']:
577561
player.play_playlist(j['messageBody'])

src/scripts/install_assistant.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ fi
2626

2727

2828
# Will enter here if Directory exists
29+
30+
# Sync system time to prevent problems while installing pip
31+
sudo systemctl stop ntp
32+
sudo ntpd -gq
33+
sudo systemctl start ntp
34+
# Install pip
2935
/opt/AlexaPi/env/bin/pip install pip setuptools --upgrade
3036

3137
# Install forked Assistant SDK

0 commit comments

Comments
 (0)