impl scrobble & scrobble setting

works even in background thanks zustand
This commit is contained in:
austinried
2021-08-04 17:59:43 +09:00
parent 706e57aa77
commit efc7e5c799
7 changed files with 106 additions and 13 deletions

View File

@@ -13,6 +13,7 @@ import {
GetPlaylistParams,
GetPlaylistsParams,
GetTopSongsParams,
ScrobbleParams,
Search3Params,
StreamParams,
} from '@app/subsonic/params'
@@ -223,6 +224,15 @@ export class SubsonicApiClient {
return this.buildUrl('stream', params)
}
//
// Media annotation
//
async scrobble(params: ScrobbleParams): Promise<SubsonicResponse<undefined>> {
const xml = await this.apiGetXml('scrobble', params)
return new SubsonicResponse<undefined>(xml, undefined)
}
//
// Searching
//