From bff1730aa5ed66815ea1f57529e96171ae85e2bc Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Sat, 24 Jan 2026 12:46:57 -0600 Subject: [PATCH] fix(share): use album.link instead of song.link for albums Odesli provides different domains for different content types: - song.link for individual tracks - album.link for albums Updated album share functions and menu label accordingly. --- src/lib/components/AlbumMenu.svelte | 2 +- src/routes/+page.svelte | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/components/AlbumMenu.svelte b/src/lib/components/AlbumMenu.svelte index 5fc69d193..e5f00523c 100644 --- a/src/lib/components/AlbumMenu.svelte +++ b/src/lib/components/AlbumMenu.svelte @@ -308,7 +308,7 @@ {#if onShareSonglink} {/if} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index d8d4f88a2..83ff88dcb 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -663,9 +663,9 @@ function shareAlbumSonglinkById(albumId: string) { const qobuzUrl = `https://play.qobuz.com/album/${albumId}`; - const songlinkUrl = `https://song.link/${encodeURIComponent(qobuzUrl)}`; - writeText(songlinkUrl); - showToast('Song.link copied to clipboard', 'success'); + const albumLinkUrl = `https://album.link/${encodeURIComponent(qobuzUrl)}`; + writeText(albumLinkUrl); + showToast('Album.link copied to clipboard', 'success'); } async function downloadAlbumById(albumId: string) { @@ -1217,13 +1217,13 @@ showToast('Album link copied to clipboard', 'success'); } - // Share album via song.link + // Share album via album.link async function shareAlbumSonglink() { if (!selectedAlbum?.id) return; const qobuzUrl = `https://play.qobuz.com/album/${selectedAlbum.id}`; - const songlinkUrl = `https://song.link/${encodeURIComponent(qobuzUrl)}`; - writeText(songlinkUrl); - showToast('Song.link copied to clipboard', 'success'); + const albumLinkUrl = `https://album.link/${encodeURIComponent(qobuzUrl)}`; + writeText(albumLinkUrl); + showToast('Album.link copied to clipboard', 'success'); } function handleAlbumTrackPlayNext(track: Track) {