From 9b57dcda410139f3a0707002ea3aaa6177c6a9d7 Mon Sep 17 00:00:00 2001 From: Preston Date: Tue, 22 Dec 2020 15:34:06 -0500 Subject: [PATCH] Show live status in search and fix youtube links in live chat --- src/renderer/components/ft-video-player/ft-video-player.js | 1 - .../components/watch-video-live-chat/watch-video-live-chat.js | 2 +- src/renderer/views/Search/Search.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/renderer/components/ft-video-player/ft-video-player.js b/src/renderer/components/ft-video-player/ft-video-player.js index 344d5d6f..15004fb5 100644 --- a/src/renderer/components/ft-video-player/ft-video-player.js +++ b/src/renderer/components/ft-video-player/ft-video-player.js @@ -275,7 +275,6 @@ export default Vue.extend({ } fs.readFile(this.dashSrc[0].url, (err, data) => { if (err) { - console.log('caught the error') this.maxFramerate = 60 return } diff --git a/src/renderer/components/watch-video-live-chat/watch-video-live-chat.js b/src/renderer/components/watch-video-live-chat/watch-video-live-chat.js index d8f122aa..96e9b1ee 100644 --- a/src/renderer/components/watch-video-live-chat/watch-video-live-chat.js +++ b/src/renderer/components/watch-video-live-chat/watch-video-live-chat.js @@ -155,7 +155,7 @@ export default Vue.extend({ comment.message.forEach((text) => { if (typeof (text.navigationEndpoint) !== 'undefined') { if (typeof (text.navigationEndpoint.watchEndpoint) !== 'undefined') { - const htmlRef = `${text.text}` + const htmlRef = `${text.text}` comment.messageHtml = comment.messageHtml + htmlRef } else { comment.messageHtml = comment.messageHtml + text.text diff --git a/src/renderer/views/Search/Search.js b/src/renderer/views/Search/Search.js index 801fe924..2f18ec13 100644 --- a/src/renderer/views/Search/Search.js +++ b/src/renderer/views/Search/Search.js @@ -154,7 +154,7 @@ export default Vue.extend({ published: publishDate, publishedText: publishDate, lengthSeconds: videoDuration, - liveNow: video.live, + liveNow: video.isLive, paid: false, premium: false, isUpcoming: false,