mirror of
https://github.com/p-stream/p-stream.git
synced 2026-05-14 21:31:14 +00:00
Update src/stores/player/utils/captionstranslation.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
eab6113a0f
commit
96b74aa169
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ async function translateCaption(
|
||||||
}
|
}
|
||||||
if (!text) {
|
if (!text) {
|
||||||
console.error("Failed to translate caption");
|
console.error("Failed to translate caption");
|
||||||
caption.text = `(CAPTION COULD NOT BE TRANSLATED)\n${caption.text}}`;
|
caption.text = `(CAPTION COULD NOT BE TRANSLATED)\n${caption.text}`;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
caption.text = text.trim();
|
caption.text = text.trim();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue