Merge commit '6519b054c6d385386e3c660c044f538aa49aadec'

This commit is contained in:
PrestonN 2021-10-18 12:55:07 -04:00
commit 4ff6bf6c43
1 changed files with 3 additions and 1 deletions

View File

@ -546,7 +546,9 @@ export default Vue.extend({
this.recommendedVideos = result.recommendedVideos
this.adaptiveFormats = result.adaptiveFormats.map((format) => {
format.bitrate = parseInt(format.bitrate)
format.height = parseInt(format.resolution.replace('p', ''))
if (typeof format.resolution !== 'undefined') {
format.height = parseInt(format.resolution.replace('p', ''))
}
return format
})
this.isLive = result.liveNow