handle multiple artists properly in UI

This commit is contained in:
Drew Weymouth
2023-10-22 11:40:06 -07:00
parent d6a1f70823
commit 4f002574c2
13 changed files with 73 additions and 48 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ import (
import (
"fmt"
"log"
"strings"
"unsafe"
"github.com/dweymouth/supersonic/backend/mediaprovider"
@@ -79,7 +80,7 @@ func NewMPMediaHandler(player *player.Player, playbackManager *PlaybackManager)
var artist string
if len(track.ArtistNames) > 0 {
artist = track.ArtistNames[0]
artist = strings.Join(track.ArtistNames, ", ")
}
cArtist := C.CString(artist)