From 318d7decb64ced252a497af7f11e6136515888ef Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Sat, 25 Mar 2023 18:49:43 +0100 Subject: [PATCH] Fix live premieres being treated as non-live videos --- src/renderer/components/watch-video-info/watch-video-info.js | 2 +- src/renderer/views/Watch/Watch.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/components/watch-video-info/watch-video-info.js b/src/renderer/components/watch-video-info/watch-video-info.js index 03ca3496f450..84e152eeb5f7 100644 --- a/src/renderer/components/watch-video-info/watch-video-info.js +++ b/src/renderer/components/watch-video-info/watch-video-info.js @@ -264,7 +264,7 @@ export default defineComponent({ }, publishedString() { - if (this.isLiveContent && this.isLive) { + if (this.isLive) { return this.$t('Video.Started streaming on') } else if (this.isLiveContent && !this.isLive) { return this.$t('Video.Streamed on') diff --git a/src/renderer/views/Watch/Watch.js b/src/renderer/views/Watch/Watch.js index a37844621361..6d33947432dc 100644 --- a/src/renderer/views/Watch/Watch.js +++ b/src/renderer/views/Watch/Watch.js @@ -383,7 +383,7 @@ export default defineComponent({ this.videoChapters = chapters - if (!this.hideLiveChat && this.isLive && this.isLiveContent && result.livechat) { + if (!this.hideLiveChat && this.isLive && result.livechat) { this.liveChat = result.getLiveChat() } else { this.liveChat = null @@ -396,7 +396,7 @@ export default defineComponent({ result = bypassedResult } - if ((this.isLive && this.isLiveContent) && !this.isUpcoming) { + if (this.isLive && !this.isUpcoming) { try { const formats = await getFormatsFromHLSManifest(result.streaming_data.hls_manifest_url)