mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 15:02:42 +01:00
impl star/unstar starred state
This commit is contained in:
@@ -15,6 +15,7 @@ import {
|
||||
GetTopSongsParams,
|
||||
ScrobbleParams,
|
||||
Search3Params,
|
||||
StarParams,
|
||||
StreamParams,
|
||||
} from '@app/subsonic/params'
|
||||
import {
|
||||
@@ -233,6 +234,16 @@ export class SubsonicApiClient {
|
||||
return new SubsonicResponse<undefined>(xml, undefined)
|
||||
}
|
||||
|
||||
async star(params: StarParams): Promise<SubsonicResponse<undefined>> {
|
||||
const xml = await this.apiGetXml('star', params)
|
||||
return new SubsonicResponse<undefined>(xml, undefined)
|
||||
}
|
||||
|
||||
async unstar(params: StarParams): Promise<SubsonicResponse<undefined>> {
|
||||
const xml = await this.apiGetXml('unstar', params)
|
||||
return new SubsonicResponse<undefined>(xml, undefined)
|
||||
}
|
||||
|
||||
//
|
||||
// Searching
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user