From 08182123b8165c8c8dc55d1fefc643f5c5c47035 Mon Sep 17 00:00:00 2001 From: Simon Garrelou Date: Sat, 10 Dec 2022 22:22:32 +0100 Subject: Add playlist support --- src/page_artists.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/page_artists.go') diff --git a/src/page_artists.go b/src/page_artists.go index 874a675..b90d785 100644 --- a/src/page_artists.go +++ b/src/page_artists.go @@ -3,7 +3,6 @@ package src import ( "fmt" - "github.com/delucks/go-subsonic" "github.com/gdamore/tcell/v2" "github.com/rivo/tview" ) @@ -115,10 +114,8 @@ func (a *app) loadAlbumInPanel(id string) error { } a.songsList.Clear() - a.currentSongs = make([]*subsonic.Child, 0) + a.currentSongs = album.Child for _, song := range album.Child { - a.currentSongs = append(a.currentSongs, song) - txt := fmt.Sprintf("%-2d - %s", song.Track, song.Title) a.songsList.AddItem(txt, "", 0, func() { -- cgit v1.2.3