mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 05:13:01 +00:00
change music manager display to not double authenticate spotify
This commit is contained in:
@@ -98,14 +98,9 @@ class MusicManager:
|
|||||||
try:
|
try:
|
||||||
self.spotify = SpotifyClient()
|
self.spotify = SpotifyClient()
|
||||||
if not self.spotify.is_authenticated():
|
if not self.spotify.is_authenticated():
|
||||||
logging.warning("Spotify client initialized but not authenticated.")
|
logging.warning("Spotify client initialized but not authenticated. Please run src/authenticate_spotify.py if you want to use Spotify.")
|
||||||
# We still might need manual intervention by the user based on console output
|
# The SpotifyClient will log more details if cache loading failed.
|
||||||
auth_url = self.spotify.get_auth_url()
|
# No need to attempt auth URL generation here.
|
||||||
if auth_url:
|
|
||||||
print(f"---> Spotify requires authorization. Please visit: {auth_url}")
|
|
||||||
print("---> After authorizing, restart the application.")
|
|
||||||
else:
|
|
||||||
print("---> Could not get Spotify auth URL. Check config/config_secrets.json")
|
|
||||||
else:
|
else:
|
||||||
logging.info("Spotify client authenticated.")
|
logging.info("Spotify client authenticated.")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user