Update src/stores/player/utils/captionstranslation.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
vlOd 2025-12-27 01:21:29 +02:00 committed by GitHub
parent 96b74aa169
commit 071bdeca0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,18 +108,18 @@ async function translateCaptions(
const successCount = results.filter((v) => v).length;
const failedCount = results.length - successCount;
const successPercentange = (successCount / results.length) * 100;
const failedPercentange = (failedCount / results.length) * 100;
const successPercentage = (successCount / results.length) * 100;
const failedPercentage = (failedCount / results.length) * 100;
// console.log(
// "Done translating captions",
// results.length,
// successCount,
// failedCount,
// successPercentange,
// failedPercentange,
// successPercentage,
// failedPercentage,
// );
if (failedPercentange > successPercentange) {
if (failedPercentage > successPercentage) {
throw new Error("Success percentage is not acceptable");
}
} catch (error) {