Show live status in search and fix youtube links in live chat

This commit is contained in:
Preston 2020-12-22 15:34:06 -05:00
parent d52533b8c0
commit 9b57dcda41
3 changed files with 2 additions and 3 deletions

View File

@ -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
}

View File

@ -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 = `<router-link to="/watch/${text.navigationEndpoint.watchEndpoint.videoId}">${text.text}</router-link>`
const htmlRef = `<a href="https://www.youtube.com/watch?v=${text.navigationEndpoint.watchEndpoint.videoId}">${text.text}</a>`
comment.messageHtml = comment.messageHtml + htmlRef
} else {
comment.messageHtml = comment.messageHtml + text.text

View File

@ -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,