From ed8d037569445b31865b3aa85d79db941fb468e6 Mon Sep 17 00:00:00 2001 From: Mike Miller Date: Fri, 20 Sep 2019 06:38:50 +0000 Subject: [PATCH] Fix one more 'invalid response' when playing from a library --- geemusic/intents/selection.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/geemusic/intents/selection.py b/geemusic/intents/selection.py index 39db0be..8d52281 100644 --- a/geemusic/intents/selection.py +++ b/geemusic/intents/selection.py @@ -37,7 +37,10 @@ def play_artist(artist_name): # Get a streaming URL for the top song stream_url = api.get_stream_url(first_song_id) - thumbnail = api.get_thumbnail(artist['artistArtRef']) + if "artistArtRef" in artist: + thumbnail = api.get_thumbnail(artist['albumArtRef']) + else: + thumbnail = None if api.use_store: speech_text = render_template("play_artist_text", artist=artist['name']) else: -- 2.38.5