From 39811f6ee4e6ff0f287723aa41cfe426816f1757 Mon Sep 17 00:00:00 2001 From: Svallinn <41585298+Svallinn@users.noreply.github.com> Date: Fri, 19 Mar 2021 19:18:21 +0000 Subject: [PATCH] Change locale caption function name --- src/renderer/views/Watch/Watch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/views/Watch/Watch.js b/src/renderer/views/Watch/Watch.js index cbe1e48f..5d69623f 100644 --- a/src/renderer/views/Watch/Watch.js +++ b/src/renderer/views/Watch/Watch.js @@ -389,7 +389,7 @@ export default Vue.extend({ if (!standardLocale.startsWith('en') && noLocaleCaption) { const baseUrl = result.player_response.captions.playerCaptionsRenderer.baseUrl - this.tryAddingAutoGeneratedLocaleCaption(captionTracks, standardLocale, baseUrl) + this.tryAddingTranslatedLocaleCaption(captionTracks, standardLocale, baseUrl) } this.captionHybridList = this.createCaptionPromiseList(captionTracks) @@ -1051,7 +1051,7 @@ export default Vue.extend({ }) }, - tryAddingAutoGeneratedLocaleCaption: function (captionTracks, locale, baseUrl) { + tryAddingTranslatedLocaleCaption: function (captionTracks, locale, baseUrl) { const enCaptionIdx = captionTracks.findIndex(track => track.languageCode === 'en' && track.kind !== 'asr' )