mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-12 05:07:41 +02:00
web/api: remove deprecated statuses, update error type, time out request
also updated some error codes
This commit is contained in:
@ -68,16 +68,16 @@
|
||||
|
||||
return createDialog({
|
||||
...defaultErrorPopup,
|
||||
bodyText: "couldn't access the api",
|
||||
bodyText: $t("error.api.unreachable"),
|
||||
});
|
||||
}
|
||||
|
||||
if (response.status === "error" || response.status === "rate-limit") {
|
||||
if (response.status === "error") {
|
||||
changeDownloadButton("error");
|
||||
|
||||
return createDialog({
|
||||
...defaultErrorPopup,
|
||||
bodyText: response.text,
|
||||
bodyText: $t(response.error.code),
|
||||
});
|
||||
}
|
||||
|
||||
@ -101,7 +101,7 @@
|
||||
|
||||
return createDialog({
|
||||
...defaultErrorPopup,
|
||||
bodyText: "couldn't probe the stream",
|
||||
bodyText: $t("error.stream.failed_probe"),
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -139,7 +139,7 @@
|
||||
|
||||
return createDialog({
|
||||
...defaultErrorPopup,
|
||||
bodyText: "unknown/unsupported status",
|
||||
bodyText: $t("error.api.unknown_response"),
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user