Ability to heart and star tracks whilst playing

Ability to heart and star tracks whilst playing
This commit is contained in:
Simon J
2021-10-07 15:57:09 +11:00
committed by GitHub
parent a02b8c1ecd
commit 8f3d2bddf7
28 changed files with 1739 additions and 861 deletions

View File

@@ -54,8 +54,8 @@ export type AlbumSummary = {
genre: Genre | undefined;
coverArt: string | undefined;
artistName: string;
artistId: string;
artistName: string | undefined;
artistId: string | undefined;
};
export type Album = AlbumSummary & {};
@@ -65,6 +65,11 @@ export type Genre = {
id: string;
}
export type Rating = {
love: boolean;
stars: number;
}
export type Track = {
id: string;
name: string;
@@ -75,6 +80,7 @@ export type Track = {
coverArt: string | undefined;
album: AlbumSummary;
artist: ArtistSummary;
rating: Rating;
};
export type Paging = {
@@ -177,6 +183,7 @@ export interface MusicLibrary {
trackId: string;
range: string | undefined;
}): Promise<TrackStream>;
rate(trackId: string, rating: Rating): Promise<boolean>;
coverArt(id: string, size?: number): Promise<CoverArt | undefined>;
nowPlaying(id: string): Promise<boolean>
scrobble(id: string): Promise<boolean>