From 029a0bc08e71495f738c94052f5187732f1672f5 Mon Sep 17 00:00:00 2001 From: Preston Date: Wed, 26 Aug 2020 16:45:20 -0400 Subject: [PATCH] Test if this fixes subtitles from sometimes not showing up. --- 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 0ec03dc0..d966ffae 100644 --- a/src/renderer/views/Watch/Watch.js +++ b/src/renderer/views/Watch/Watch.js @@ -217,7 +217,7 @@ export default Vue.extend({ this.$store .dispatch('ytGetVideoInformation', this.videoId) - .then(result => { + .then(async result => { console.log(result) this.videoTitle = result.videoDetails.title this.videoViewCount = parseInt( @@ -327,7 +327,7 @@ export default Vue.extend({ .captionTracks if (typeof captionTracks !== 'undefined') { - this.createCaptionUrls(captionTracks) + await this.createCaptionUrls(captionTracks) } this.isLoading = false