aboutsummaryrefslogtreecommitdiff
path: root/src/page_artists.go
diff options
context:
space:
mode:
authormksafavi <mksafavi@gmail.com>2024-09-15 20:46:43 +0330
committerSimon Garrelou <simon@sixfoisneuf.fr>2024-09-22 09:54:25 +0200
commitea83cf3829e9cbea7570bcf9ffe9710b7123ba58 (patch)
tree5a7059785c718ab47986bf771f9b1649fdbebba9 /src/page_artists.go
parent93328e0ca6c0ed2424550c7a164b4b1212a554b6 (diff)
downloadtermsonic-ea83cf3829e9cbea7570bcf9ffe9710b7123ba58.tar.gz
termsonic-ea83cf3829e9cbea7570bcf9ffe9710b7123ba58.zip
fixed showing duplicate albums when expanding artist's albums.
Diffstat (limited to 'src/page_artists.go')
-rw-r--r--src/page_artists.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/page_artists.go b/src/page_artists.go
index eeb10b7..bfaae56 100644
--- a/src/page_artists.go
+++ b/src/page_artists.go
@@ -28,7 +28,7 @@ func (a *app) artistsPage() tview.Primitive {
28 28
29 sel := node.GetReference().(selection) 29 sel := node.GetReference().(selection)
30 if sel.entryType == "artist" { 30 if sel.entryType == "artist" {
31 if node.GetChildren() != nil || len(node.GetChildren()) == 0 { 31 if node.GetChildren() == nil || len(node.GetChildren()) == 0 {
32 artist, err := a.sub.GetArtist(sel.id) 32 artist, err := a.sub.GetArtist(sel.id)
33 if err != nil { 33 if err != nil {
34 LogErrorf("loading artist '%s': %v", sel.id, err) 34 LogErrorf("loading artist '%s': %v", sel.id, err)