From 60c9cb6cbb558d641a05bc68f323fd327db18ab9 Mon Sep 17 00:00:00 2001 From: Honey Date: Tue, 28 Apr 2026 00:35:05 +0200 Subject: [PATCH] fix: no artist/album links in playlist, add comma to artist split Co-Authored-By: Claude Sonnet 4.6 --- src/components.js | 2 +- src/views.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components.js b/src/components.js index 37edd8f..3940cfa 100644 --- a/src/components.js +++ b/src/components.js @@ -32,7 +32,7 @@ export function makeSongItem(s, idx, list, { noArtistLink = false, noAlbumLink = if(s.starred && !s._starred) s._starred = true; el.className = 'song-item' + (S.queue[S.qIdx]?.id === s.id ? ' playing' : ''); const cv = coverUrl(s.coverArt, 60); - const artistParts = (s.artist || '').split(/\s*(?:\/|•)\s*/).filter(Boolean); + const artistParts = (s.artist || '').split(/\s*(?:\/|•|,)\s*/).filter(Boolean); const artistHtml = artistParts.length ? artistParts.map((name, i) => { const aid = i === 0 ? (s.artistId || '') : ''; diff --git a/src/views.js b/src/views.js index 75d2955..5b24531 100644 --- a/src/views.js +++ b/src/views.js @@ -495,7 +495,7 @@ export async function loadPlaylistDetail(pl) { playQueue(shuffled, 0); }; sl.innerHTML = ''; - songs.forEach((s,i) => sl.appendChild(makeSongItem(s, i, songs))); + songs.forEach((s,i) => sl.appendChild(makeSongItem(s, i, songs, { noArtistLink: true, noAlbumLink: true }))); } catch(e) { sl.innerHTML = `

${e.message}

`; } }