mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 15:02:42 +01:00
impl cache create/delete with server create/delete
also impl test connection
This commit is contained in:
@@ -35,7 +35,6 @@ import {
|
||||
SubsonicResponse,
|
||||
} from '@app/subsonic/responses'
|
||||
import { Server } from '@app/models/settings'
|
||||
import paths from '@app/util/paths'
|
||||
import PromiseQueue from '@app/util/PromiseQueue'
|
||||
|
||||
export class SubsonicApiError extends Error {
|
||||
@@ -212,11 +211,6 @@ export class SubsonicApiClient {
|
||||
// Media retrieval
|
||||
//
|
||||
|
||||
async getCoverArt(params: GetCoverArtParams): Promise<string> {
|
||||
const path = `${paths.songCache}/${params.id}`
|
||||
return await this.apiDownload('getCoverArt', path, params)
|
||||
}
|
||||
|
||||
getCoverArtUri(params?: GetCoverArtParams): string {
|
||||
return this.buildUrl('getCoverArt', params)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user