Skip to content

Commit 1bfe98f

Browse files
authored
build
1 parent f141a47 commit 1bfe98f

File tree

2 files changed

+55
-48
lines changed

2 files changed

+55
-48
lines changed

dist/vot-min.user.js

Lines changed: 42 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vot.user.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// @name:ru [VOT] - Закадровый перевод видео
88
// @name:zh [VOT] - 画外音视频翻译
99
// @namespace vot
10-
// @version 1.11.3.1
10+
// @version 1.11.3.2
1111
// @author Toil, SashaXser, MrSoczekXD, mynovelhost, sodapng
1212
// @description A small extension that adds a Yandex Browser video translation to other browsers
1313
// @description:de Eine kleine Erweiterung, die eine Voice-over-Übersetzung von Videos aus dem Yandex-Browser zu anderen Browsern hinzufügt
@@ -9727,7 +9727,7 @@ get isSupportOnlyLS() {
97279727
return buildVersion || scriptVersion || "unknown";
97289728
}
97299729
function getRuntimeLocaleVersion() {
9730-
const buildVersion = String("1.11.3.1");
9730+
const buildVersion = String("1.11.3.2");
97319731
const scriptVersion = typeof GM_info !== "undefined" ? String(GM_info?.script?.version || "") : "";
97329732
return resolveRuntimeLocaleVersion(buildVersion, scriptVersion);
97339733
}
@@ -11339,6 +11339,8 @@ localizedMessage;
1133911339
}
1134011340
return error2;
1134111341
}
11342+
const INITIAL_VIDEO_TRANSLATION_RETRY_DELAY_MS = 75e3;
11343+
const SUBSEQUENT_VIDEO_TRANSLATION_RETRY_DELAY_MS = 25e3;
1134211344
class VOTTranslationHandler {
1134311345
videoHandler;
1134411346
audioDownloader;
@@ -11484,7 +11486,10 @@ isLivelyVoiceUnavailableError(value) {
1148411486
}
1148511487
});
1148611488
}
11487-
async translateVideoImpl(videoData, requestLang, responseLang, translationHelp = null, shouldSendFailedAudio = false, signal = NEVER_ABORTED_SIGNAL, disableLivelyVoice = false) {
11489+
getVideoTranslationRetryDelayMs(retryAttempt) {
11490+
return retryAttempt === 0 ? INITIAL_VIDEO_TRANSLATION_RETRY_DELAY_MS : SUBSEQUENT_VIDEO_TRANSLATION_RETRY_DELAY_MS;
11491+
}
11492+
async translateVideoImpl(videoData, requestLang, responseLang, translationHelp = null, shouldSendFailedAudio = false, signal = NEVER_ABORTED_SIGNAL, disableLivelyVoice = false, retryAttempt = 0) {
1148811493
clearTimeout(this.videoHandler.autoRetry);
1148911494
this.finishDownloadSuccess();
1149011495
const requestLangForApi = this.videoHandler.getRequestLangForTranslation(
@@ -11545,7 +11550,8 @@ isLivelyVoiceUnavailableError(value) {
1154511550
translationHelp,
1154611551
true,
1154711552
signal,
11548-
livelyDisabled
11553+
livelyDisabled,
11554+
retryAttempt
1154911555
);
1155011556
}
1155111557
} catch (err) {
@@ -11581,9 +11587,10 @@ isLivelyVoiceUnavailableError(value) {
1158111587
translationHelp,
1158211588
shouldSendFailedAudio,
1158311589
signal,
11584-
livelyDisabled
11590+
livelyDisabled,
11591+
retryAttempt + 1
1158511592
),
11586-
2e4,
11593+
this.getVideoTranslationRetryDelayMs(retryAttempt),
1158711594
signal
1158811595
);
1158911596
}

0 commit comments

Comments
 (0)