Linking Album->Artist so that artist name shows on albumLists

This commit is contained in:
simojenki
2021-04-21 14:35:21 +10:00
parent 9f90f54067
commit a06ae2e18e
8 changed files with 151 additions and 76 deletions

View File

@@ -50,6 +50,9 @@ export type AlbumSummary = {
name: string;
year: string | undefined;
genre: Genre | undefined;
artistName: string;
artistId: string;
};
export type Album = AlbumSummary & {};
@@ -111,6 +114,8 @@ export const albumToAlbumSummary = (it: Album): AlbumSummary => ({
name: it.name,
year: it.year,
genre: it.genre,
artistName: it.artistName,
artistId: it.artistId,
});
export type StreamingHeader = "content-type" | "content-length" | "content-range" | "accept-ranges";