This commit is contained in:
parent
5fd6fa433f
commit
384231c3d3
@ -1037,7 +1037,6 @@ func CreateRadioPlaylist(ctx *gctx.Context, client *spotify.Client) (*spotify.Fu
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
fmt.Println("PLAYLIST CREATED", playlist.ID)
|
|
||||||
raw, err := json.MarshalIndent(playlist, "", " ")
|
raw, err := json.MarshalIndent(playlist, "", " ")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
@ -80,8 +80,8 @@ type mainModel struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m *mainModel) PlayRadio() {
|
func (m *mainModel) PlayRadio() {
|
||||||
currentlyPlaying = m.list.SelectedItem().FilterValue()
|
currentlyPlaying = m.list.SelectedItem().(mainItem).Title()
|
||||||
m.list.NewStatusMessage("Playing " + currentlyPlaying)
|
m.list.NewStatusMessage("Starting radio for " + currentlyPlaying)
|
||||||
selectedItem := m.list.SelectedItem().(mainItem).SpotifyItem
|
selectedItem := m.list.SelectedItem().(mainItem).SpotifyItem
|
||||||
switch selectedItem.(type) {
|
switch selectedItem.(type) {
|
||||||
case spotify.SimplePlaylist:
|
case spotify.SimplePlaylist:
|
||||||
|
Loading…
Reference in New Issue
Block a user