mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-29 21:10:14 +02: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":
|
case "audio":
|
||||||
if (audioIgnore.includes(host) || (host === "reddit" && r.typeId === "redirect")) {
|
if (audioIgnore.includes(host) || (host === "reddit" && r.typeId === "redirect")) {
|
||||||
return createResponse("error", {
|
return createResponse("error", {
|
||||||
code: "error.api.fetch.empty"
|
code: "error.api.service.audio_not_supported"
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user