Skip to content

Commit

Permalink
Docker bugfixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Groovylein committed Dec 18, 2023
1 parent 257d177 commit 90cc33b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/jukebox.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN usermod -aG pulse ${USER}
# Install all Jukebox dependencies
RUN apt-get update && apt-get install -qq -y \
--allow-downgrades --allow-remove-essential --allow-change-held-packages \
gcc at wget \
gcc g++ at wget \
espeak mpc mpg123 git ffmpeg spi-tools netcat \
python3 python3-venv python3-dev python3-mutagen

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ def __init__(self, player_status):
value='http://localhost:3001')

spot_scope = "user-read-playback-state,user-modify-playback-state"
self.auth_manager = SpotifyOAuth(open_browser=False, scope=spot_scope, client_id=self.client_id, client_secret=self.client_id, redirect_uri=self.redirect_uri, cache_path=sanitize(self.cache_file))
self.auth_uri = self.auth_manager.get_authorize_url()
logger.info(f"Please log in here: {self.auth_uri}")
try:
self.auth_manager = SpotifyOAuth(open_browser=False, scope=spot_scope, client_id=self.client_id, client_secret=self.client_id, redirect_uri=self.redirect_uri, cache_path=sanitize(self.cache_file))
self.auth_uri = self.auth_manager.get_authorize_url()
logger.info(f"Please log in here: {self.auth_uri}")
except Exception as err:
logger.error(err)

#self.collection_file_location = cfg.setndefault('playerspot', 'collection_file',
# value="../../shared/audio/spotify/spotify_collection.yaml")
Expand Down

0 comments on commit 90cc33b

Please sign in to comment.