▶
This commit is contained in:
parent
8c2b5b41d7
commit
a8eeca7e5d
@ -784,7 +784,11 @@ func PrintState(state *spotify.PlayerState) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func PrintPlaying(current *spotify.CurrentlyPlaying) 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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user