mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-26 17:46:06 +00:00
api/match-action: proper error code for unsupported audio extraction
This commit is contained in:
parent
eee9beef91
commit
50344eda17
|
@ -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"
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue