feat: add goodies/booklet types to frontend and adapter
Add QobuzGoody interface, goodies field to QobuzAlbum and AlbumDetail, and pass goodies through in convertQobuzAlbum adapter.
This commit is contained in:
2 files changed
+13
-1
No files matched your search
@@ -352,7 +352,8 @@ export function convertQobuzAlbum(album: QobuzAlbum): AlbumDetail {
|
||||
isrc: track.isrc,
|
||||
streamable: track.streamable ?? true
|
||||
})) || [],
|
||||
upc: album.upc
|
||||
upc: album.upc,
|
||||
goodies: album.goodies
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -103,6 +103,16 @@ export interface QobuzAlbum {
|
||||
maximum_sampling_rate?: number;
|
||||
tracks?: { items: QobuzTrack[] };
|
||||
upc?: string;
|
||||
goodies?: QobuzGoody[];
|
||||
}
|
||||
|
||||
export interface QobuzGoody {
|
||||
id: number;
|
||||
name: string;
|
||||
url: string;
|
||||
original_url: string;
|
||||
file_format_id?: number;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface QobuzPlaylist {
|
||||
@@ -183,6 +193,7 @@ export interface AlbumDetail {
|
||||
duration: string;
|
||||
tracks: Track[];
|
||||
upc?: string; // Universal Product Code for album.link sharing
|
||||
goodies?: QobuzGoody[];
|
||||
}
|
||||
|
||||
export interface ArtistDetail {
|
||||
|
||||
Reference in new issue
Block a user