Fix issue with recent live streams not being playable and update credits link in about
This commit is contained in:
parent
5322280b2f
commit
29cdae7f8e
|
@ -69,7 +69,7 @@ export default Vue.extend({
|
||||||
{
|
{
|
||||||
icon: 'users',
|
icon: 'users',
|
||||||
title: this.$t('About.Credits'),
|
title: this.$t('About.Credits'),
|
||||||
content: `${this.$t('About.FreeTube is made possible by')} <a href="https://github.com/FreeTubeApp/FreeTube/wiki/Credits">${this.$t('About.these people and projects')}</a>`
|
content: `${this.$t('About.FreeTube is made possible by')} <a href="https://docs.freetubeapp.io/credits/">${this.$t('About.these people and projects')}</a>`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'heart',
|
icon: 'heart',
|
||||||
|
|
|
@ -291,7 +291,7 @@ export default Vue.extend({
|
||||||
this.videoLikeCount = isNaN(result.videoDetails.likes) ? 0 : result.videoDetails.likes
|
this.videoLikeCount = isNaN(result.videoDetails.likes) ? 0 : result.videoDetails.likes
|
||||||
this.videoDislikeCount = isNaN(result.videoDetails.dislikes) ? 0 : result.videoDetails.dislikes
|
this.videoDislikeCount = isNaN(result.videoDetails.dislikes) ? 0 : result.videoDetails.dislikes
|
||||||
}
|
}
|
||||||
this.isLive = result.player_response.videoDetails.isLive
|
this.isLive = result.player_response.videoDetails.isLive || result.player_response.videoDetails.isLiveContent
|
||||||
this.isLiveContent = result.player_response.videoDetails.isLiveContent
|
this.isLiveContent = result.player_response.videoDetails.isLiveContent
|
||||||
this.isUpcoming = result.player_response.videoDetails.isUpcoming ? result.player_response.videoDetails.isUpcoming : false
|
this.isUpcoming = result.player_response.videoDetails.isUpcoming ? result.player_response.videoDetails.isUpcoming : false
|
||||||
|
|
||||||
|
@ -359,8 +359,14 @@ export default Vue.extend({
|
||||||
} else {
|
} else {
|
||||||
this.videoLengthSeconds = parseInt(result.videoDetails.lengthSeconds)
|
this.videoLengthSeconds = parseInt(result.videoDetails.lengthSeconds)
|
||||||
if (result.player_response.streamingData !== undefined) {
|
if (result.player_response.streamingData !== undefined) {
|
||||||
this.videoSourceList = result.player_response.streamingData.formats.reverse()
|
if (typeof (result.player_response.streamingData.formats) !== 'undefined') {
|
||||||
this.downloadLinks = result.formats.map((format) => {
|
this.videoSourceList = result.player_response.streamingData.formats.reverse()
|
||||||
|
} else {
|
||||||
|
this.videoSourceList = result.player_response.streamingData.adaptiveFormats.reverse()
|
||||||
|
}
|
||||||
|
this.downloadLinks = result.formats.filter((format) => {
|
||||||
|
return typeof format.mimeType !== 'undefined'
|
||||||
|
}).map((format) => {
|
||||||
const qualityLabel = format.qualityLabel || format.bitrate
|
const qualityLabel = format.qualityLabel || format.bitrate
|
||||||
const itag = format.itag
|
const itag = format.itag
|
||||||
const fps = format.fps ? (format.fps + 'fps') : 'kbps'
|
const fps = format.fps ? (format.fps + 'fps') : 'kbps'
|
||||||
|
|
Loading…
Reference in New Issue