feat(album): plumb featured artists and parental warning

Add Album.parental_warning and Album.artists (with the new AlbumArtist
struct) to qbz-models so the /album/get response surfaces both fields.
Mirror them in the QobuzAlbum / AlbumDetail TypeScript types and
populate featuredArtists (filtered to non-main contributors) and
parentalWarning in convertQobuzAlbum. Wire onFeaturedArtistClick from
the route so featured artist names route to their discography.

cc
This commit is contained in:
vicrodh committed 2026-05-06 22:06:54 -06:00
1 parent e1447159bb
commit e8d58196c5
4 files changed
+34

No files matched your search

+17
View File
@@ -273,6 +273,23 @@ pub struct Album {
/// Editorial awards (Qobuzissime, Album of the Week, press accolades).
#[serde(default)]
pub awards: Option<Vec<AlbumAward>>,
/// Parental advisory / explicit content marker.
#[serde(default)]
pub parental_warning: Option<bool>,
/// Full artist contributor list including roles. The primary artist is
/// duplicated here as `roles: ["main-artist"]`; non-main entries are
/// the album's featured artists.
#[serde(default)]
pub artists: Option<Vec<AlbumArtist>>,
}
/// Album artist contributor entry (main artist + featured artists).
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AlbumArtist {
pub id: u64,
pub name: String,
#[serde(default)]
pub roles: Option<Vec<String>>,
}
/// A downloadable extra bundled with an album (e.g. PDF booklet)