oopsie
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
abs3nt 2023-04-16 11:31:54 -07:00
parent 7e22c90311
commit 5081c44304
Signed by: abs3nt
GPG Key ID: FDC6662313FA9386

View File

@ -91,7 +91,7 @@ type mainModel struct {
} }
func (m *mainModel) PlayRadio() { func (m *mainModel) PlayRadio() {
m.SendMessage("Starting radio for "+m.list.SelectedItem().(mainItem).Title(), 2*time.Second) go m.SendMessage("Starting radio for "+m.list.SelectedItem().(mainItem).Title(), 2*time.Second)
selectedItem := m.list.SelectedItem().(mainItem).SpotifyItem selectedItem := m.list.SelectedItem().(mainItem).SpotifyItem
switch item := selectedItem.(type) { switch item := selectedItem.(type) {
case spotify.SimplePlaylist: case spotify.SimplePlaylist:
@ -293,7 +293,7 @@ func (m *mainModel) DeleteTrackFromPlaylist() error {
return nil return nil
} }
track := m.list.SelectedItem().(mainItem).SpotifyItem.(spotify.PlaylistTrack).Track track := m.list.SelectedItem().(mainItem).SpotifyItem.(spotify.PlaylistTrack).Track
m.SendMessage("Deleteing "+track.Name+" from "+m.playlist.Name, 2*time.Second) go m.SendMessage("Deleteing "+track.Name+" from "+m.playlist.Name, 2*time.Second)
go func() { go func() {
HandleDeleteTrackFromPlaylist(m.ctx, m.commands, track.ID, m.playlist.ID) HandleDeleteTrackFromPlaylist(m.ctx, m.commands, track.ID, m.playlist.ID)
new_items, err := PlaylistView(m.ctx, m.commands, m.playlist) new_items, err := PlaylistView(m.ctx, m.commands, m.playlist)