Change playing of a track to mark nowPlaying rather than scrobble, refactor/tidy up track streaming

This commit is contained in:
simojenki
2021-06-26 18:11:26 +10:00
parent cb987aeacb
commit eec3313587
7 changed files with 418 additions and 183 deletions

View File

@@ -168,6 +168,7 @@ export interface MusicLibrary {
range: string | undefined;
}): Promise<TrackStream>;
coverArt(id: string, type: "album" | "artist", size?: number): Promise<CoverArt | undefined>;
nowPlaying(id: string): Promise<boolean>
scrobble(id: string): Promise<boolean>
searchArtists(query: string): Promise<ArtistSummary[]>;
searchAlbums(query: string): Promise<AlbumSummary[]>;