api/match-action: proper error code for unsupported audio extraction

This commit is contained in:
wukko 2024-11-28 15:48:18 +06:00
parent eee9beef91
commit 50344eda17
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -160,7 +160,7 @@ export default function({ r, host, audioFormat, isAudioOnly, isAudioMuted, disab
case "audio":
if (audioIgnore.includes(host) || (host === "reddit" && r.typeId === "redirect")) {
return createResponse("error", {
code: "error.api.fetch.empty"
code: "error.api.service.audio_not_supported"
})
}