Show live status in search and fix youtube links in live chat
This commit is contained in:
parent
d52533b8c0
commit
9b57dcda41
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue