starting radio for
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
abs3nt 2023-01-20 14:12:58 -08:00
parent 5fd6fa433f
commit 384231c3d3
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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: