string
This commit is contained in:
parent
664b654dce
commit
4ccb801a14
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ def index():
|
||||||
album = data.json()['payload']['listens'][0]['track_metadata']['release_name']
|
album = data.json()['payload']['listens'][0]['track_metadata']['release_name']
|
||||||
nowPlayingString = f"now playing for <b>{user}</b>: <b>{track}</b> by <b>{artist}</b> from <b>{album}</b>"
|
nowPlayingString = f"now playing for <b>{user}</b>: <b>{track}</b> by <b>{artist}</b> from <b>{album}</b>"
|
||||||
except:
|
except:
|
||||||
nowPlayingString = Failed to reach API
|
nowPlayingString = "Failed to reach API"
|
||||||
|
|
||||||
return render_template('index.j2', np=nowPlayingString, visitor=get_visitor_count(), buttons=buttons, nyxbuttons=nyxbuttons)
|
return render_template('index.j2', np=nowPlayingString, visitor=get_visitor_count(), buttons=buttons, nyxbuttons=nyxbuttons)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue