api/processing: append audio extension to filename before response

This commit is contained in:
dumbmoron 2024-09-07 12:16:32 +00:00
parent c52aa76426
commit 438fce3c58
No known key found for this signature in database
2 changed files with 6 additions and 7 deletions

View file

@ -196,6 +196,10 @@ export default function({ r, host, audioFormat, isAudioOnly, isAudioMuted, disab
break;
}
if (defaultParams.filename && (action === "picker" || action === "audio")) {
defaultParams.filename += `.${audioFormat}`;
}
if (alwaysProxy && responseType === "redirect") {
responseType = "tunnel";
params.type = "proxy";