feat(radio): add album radio button to UI

Add Radio button to album detail header (next to favorite button)
that calls v2_create_album_radio, populates the queue with Qobuz
API recommended tracks, and starts playback of the first track.

Add i18n keys for album radio in all 4 locale files (en/es/de/fr).
This commit is contained in:
vicrodh committed 2026-02-20 21:35:15 -06:00
1 parent d47f89c6b2
commit 557414ce4e
6 files changed
+65 -2

No files matched your search

@@ -1,7 +1,7 @@
<script lang="ts">
import { onMount, tick } from 'svelte';
import { t } from 'svelte-i18n';
import { ArrowLeft, Play, Shuffle, Heart, CloudDownload, ChevronLeft, ChevronRight } from 'lucide-svelte';
import { ArrowLeft, Play, Shuffle, Heart, Radio, CloudDownload, ChevronLeft, ChevronRight } from 'lucide-svelte';
import AlbumCard from '../AlbumCard.svelte';
import TrackRow from '../TrackRow.svelte';
import AlbumMenu from '../AlbumMenu.svelte';
@@ -100,6 +100,7 @@
onViewArtistDiscography?: () => void;
checkRelatedAlbumDownloaded?: (albumId: string) => Promise<boolean>;
onShowAlbumCredits?: () => void;
onCreateAlbumRadio?: () => void;
}
let {
@@ -144,7 +145,8 @@
onRelatedAlbumShareSonglink,
onViewArtistDiscography,
checkRelatedAlbumDownloaded,
onShowAlbumCredits
onShowAlbumCredits,
onCreateAlbumRadio
}: Props = $props();
let isFavorite = $state(false);
@@ -380,6 +382,15 @@
fill={isFavorite ? 'var(--accent-primary)' : 'none'}
/>
</button>
{#if onCreateAlbumRadio}
<button
class="action-btn-circle"
onclick={onCreateAlbumRadio}
title={$t('radio.albumRadio')}
>
<Radio size={18} />
</button>
{/if}
{#if onShowAlbumCredits}
<button
class="action-btn-circle"
+4
View File
@@ -1584,5 +1584,9 @@
"title": "WeeklyQ",
"subtitle": "Basierend auf deinem woechentlichen Hoerverlauf.",
"cardDesc": "Eine woechentliche Reise mit einem frischen Mix <strong>jeden Freitag</strong>."
},
"radio": {
"albumRadio": "Album Radio",
"creatingAlbumRadio": "Album-Radio wird erstellt..."
}
}
+4
View File
@@ -1763,5 +1763,9 @@
"notOnQobuz": "This content is not available on Qobuz.",
"playlistDetected": "This is a playlist. Use the Playlist Importer for playlists.",
"openPlaylistImporter": "Open Playlist Importer"
},
"radio": {
"albumRadio": "Album Radio",
"creatingAlbumRadio": "Creating album radio..."
}
}
+4
View File
@@ -1763,5 +1763,9 @@
"notOnQobuz": "Este contenido no está disponible en Qobuz.",
"playlistDetected": "Esto es una playlist. Usa el Importador de Playlists.",
"openPlaylistImporter": "Abrir Importador de Playlists"
},
"radio": {
"albumRadio": "Radio del Album",
"creatingAlbumRadio": "Creando radio del album..."
}
}
+4
View File
@@ -1584,5 +1584,9 @@
"title": "WeeklyQ",
"subtitle": "Base sur vos ecoutes hebdomadaires.",
"cardDesc": "Un voyage hebdomadaire avec un mix frais <strong>chaque vendredi</strong>."
},
"radio": {
"albumRadio": "Radio de l'album",
"creatingAlbumRadio": "Création de la radio de l'album..."
}
}