mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 15:02:42 +01:00
refactor star
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
GetMusicDirectoryParams,
|
||||
GetPlaylistParams,
|
||||
GetPlaylistsParams,
|
||||
GetSongParams,
|
||||
GetTopSongsParams,
|
||||
ScrobbleParams,
|
||||
Search3Params,
|
||||
@@ -29,6 +30,7 @@ import {
|
||||
GetMusicDirectoryResponse,
|
||||
GetPlaylistResponse,
|
||||
GetPlaylistsResponse,
|
||||
GetSongResponse,
|
||||
GetTopSongsResponse,
|
||||
Search3Response,
|
||||
SubsonicResponse,
|
||||
@@ -180,6 +182,11 @@ export class SubsonicApiClient {
|
||||
return new SubsonicResponse<GetTopSongsResponse>(xml, new GetTopSongsResponse(xml))
|
||||
}
|
||||
|
||||
async getSong(params: GetSongParams): Promise<SubsonicResponse<GetSongResponse>> {
|
||||
const xml = await this.apiGetXml('getSong', params)
|
||||
return new SubsonicResponse<GetSongResponse>(xml, new GetSongResponse(xml))
|
||||
}
|
||||
|
||||
//
|
||||
// Album/song lists
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user