api/request/local-processing: don't return an empty audio object

& also throw errors whenever a response is invalid
This commit is contained in:
wukko
2025-03-19 13:38:55 +06:00
parent 9eb342e6d2
commit 6a13ca347d
2 changed files with 16 additions and 3 deletions

View File

@@ -51,9 +51,9 @@ export type CobaltLocalProcessingResponse = {
service: string,
tunnel: string[],
output?: {
type?: string, // mimetype
filename?: string,
output: {
type: string, // mimetype
filename: string,
metadata?: {
album?: string,
copyright?: string,