From 384231c3d3ec17c8201b8bc3cc13b8ca37d3a7b4 Mon Sep 17 00:00:00 2001 From: abs3nt Date: Fri, 20 Jan 2023 14:12:58 -0800 Subject: [PATCH] starting radio for --- src/commands/commands.go | 1 - src/tui/main.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/commands/commands.go b/src/commands/commands.go index 600ef6a..d8b58a4 100644 --- a/src/commands/commands.go +++ b/src/commands/commands.go @@ -1037,7 +1037,6 @@ func CreateRadioPlaylist(ctx *gctx.Context, client *spotify.Client) (*spotify.Fu if err != nil { return nil, err } - fmt.Println("PLAYLIST CREATED", playlist.ID) raw, err := json.MarshalIndent(playlist, "", " ") if err != nil { return nil, err diff --git a/src/tui/main.go b/src/tui/main.go index c557eec..6ee3502 100644 --- a/src/tui/main.go +++ b/src/tui/main.go @@ -80,8 +80,8 @@ type mainModel struct { } func (m *mainModel) PlayRadio() { - currentlyPlaying = m.list.SelectedItem().FilterValue() - m.list.NewStatusMessage("Playing " + currentlyPlaying) + currentlyPlaying = m.list.SelectedItem().(mainItem).Title() + m.list.NewStatusMessage("Starting radio for " + currentlyPlaying) selectedItem := m.list.SelectedItem().(mainItem).SpotifyItem switch selectedItem.(type) { case spotify.SimplePlaylist: