aboutsummaryrefslogtreecommitdiff
path: root/src/page_artists.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/page_artists.go')
-rw-r--r--src/page_artists.go5
1 files changed, 1 insertions, 4 deletions
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
3import ( 3import (
4 "fmt" 4 "fmt"
5 5
6 "github.com/delucks/go-subsonic"
7 "github.com/gdamore/tcell/v2" 6 "github.com/gdamore/tcell/v2"
8 "github.com/rivo/tview" 7 "github.com/rivo/tview"
9) 8)
@@ -115,10 +114,8 @@ func (a *app) loadAlbumInPanel(id string) error {
115 } 114 }
116 115
117 a.songsList.Clear() 116 a.songsList.Clear()
118 a.currentSongs = make([]*subsonic.Child, 0) 117 a.currentSongs = album.Child
119 for _, song := range album.Child { 118 for _, song := range album.Child {
120 a.currentSongs = append(a.currentSongs, song)
121
122 txt := fmt.Sprintf("%-2d - %s", song.Track, song.Title) 119 txt := fmt.Sprintf("%-2d - %s", song.Track, song.Title)
123 120
124 a.songsList.AddItem(txt, "", 0, func() { 121 a.songsList.AddItem(txt, "", 0, func() {