Merge pull request #1107 from mihawk90/now-playing-reformat

cleanup notification text
This commit is contained in:
Jeff 2025-09-09 19:00:19 -07:00 committed by GitHub
commit be6ec49cfa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,11 +108,11 @@ export const useScrobble = () => {
) {
const artists =
currentSong.artists?.length > 0
? currentSong.artists.map((artist) => artist.name).join(', ')
? currentSong.artists.map((artist) => artist.name).join(' · ')
: currentSong.artistName;
new Notification(`Now playing ${currentSong.name}`, {
body: `by ${artists} on ${currentSong.album}`,
new Notification(`${currentSong.name}`, {
body: `${artists}\n${currentSong.album}`,
icon: currentSong.imageUrl || undefined,
});
}