Change locale caption function name

This commit is contained in:
Svallinn 2021-03-19 19:18:21 +00:00
parent becf86e945
commit 39811f6ee4
No known key found for this signature in database
GPG Key ID: 09FB527F34037CCA
1 changed files with 2 additions and 2 deletions

View File

@ -389,7 +389,7 @@ export default Vue.extend({
if (!standardLocale.startsWith('en') && noLocaleCaption) { if (!standardLocale.startsWith('en') && noLocaleCaption) {
const baseUrl = result.player_response.captions.playerCaptionsRenderer.baseUrl const baseUrl = result.player_response.captions.playerCaptionsRenderer.baseUrl
this.tryAddingAutoGeneratedLocaleCaption(captionTracks, standardLocale, baseUrl) this.tryAddingTranslatedLocaleCaption(captionTracks, standardLocale, baseUrl)
} }
this.captionHybridList = this.createCaptionPromiseList(captionTracks) 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 => const enCaptionIdx = captionTracks.findIndex(track =>
track.languageCode === 'en' && track.kind !== 'asr' track.languageCode === 'en' && track.kind !== 'asr'
) )