Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix live premieres being treated as non-live videos #3358

Merged
merged 1 commit into from
Apr 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/views/Watch/Watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Expand Down