Change locale caption function name
This commit is contained in:
parent
becf86e945
commit
39811f6ee4
|
@ -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'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue