fix: split multi-artists by • and /, clickable artist/album in playlists and album detail
- components.js: expand artist split regex to handle both ' / ' and '•' separators - views.js: enable artist+album links in playlist song items (were noArtistLink:true) - views.js: enable artist links in album detail song items - views.js: album header artist is now split and renders as clickable links Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
51babd9e41
commit
e5a80242e9
2 files changed
+8
-5
No files matched your search
+1
-1
@@ -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(' / ').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 || '') : '';
|
||||
|
||||
Reference in new issue
Block a user