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) => {
|
fs.readFile(this.dashSrc[0].url, (err, data) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log('caught the error')
|
|
||||||
this.maxFramerate = 60
|
this.maxFramerate = 60
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -155,7 +155,7 @@ export default Vue.extend({
|
||||||
comment.message.forEach((text) => {
|
comment.message.forEach((text) => {
|
||||||
if (typeof (text.navigationEndpoint) !== 'undefined') {
|
if (typeof (text.navigationEndpoint) !== 'undefined') {
|
||||||
if (typeof (text.navigationEndpoint.watchEndpoint) !== '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
|
comment.messageHtml = comment.messageHtml + htmlRef
|
||||||
} else {
|
} else {
|
||||||
comment.messageHtml = comment.messageHtml + text.text
|
comment.messageHtml = comment.messageHtml + text.text
|
||||||
|
|
|
@ -154,7 +154,7 @@ export default Vue.extend({
|
||||||
published: publishDate,
|
published: publishDate,
|
||||||
publishedText: publishDate,
|
publishedText: publishDate,
|
||||||
lengthSeconds: videoDuration,
|
lengthSeconds: videoDuration,
|
||||||
liveNow: video.live,
|
liveNow: video.isLive,
|
||||||
paid: false,
|
paid: false,
|
||||||
premium: false,
|
premium: false,
|
||||||
isUpcoming: false,
|
isUpcoming: false,
|
||||||
|
|
Loading…
Reference in New Issue