This commit is contained in:
abs3nt 2023-01-19 14:48:50 -08:00
parent 8c2b5b41d7
commit a8eeca7e5d
1 changed files with 5 additions and 1 deletions

View File

@ -784,7 +784,11 @@ func PrintState(state *spotify.PlayerState) error {
}
func PrintPlaying(current *spotify.CurrentlyPlaying) error {
fmt.Println(fmt.Sprintf("%s by %s", current.Item.Name, current.Item.Artists[0].Name))
icon := "▶"
if !current.Playing {
icon = "⏸"
}
fmt.Println(fmt.Sprintf("%s %s - %s", icon, current.Item.Name, current.Item.Artists[0].Name))
return nil
}