From 6519b054c6d385386e3c660c044f538aa49aadec Mon Sep 17 00:00:00 2001 From: PrestonN Date: Wed, 13 Oct 2021 23:11:51 -0400 Subject: [PATCH] Add check for format.resolution in Invidious adaptive formats --- src/renderer/views/Watch/Watch.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer/views/Watch/Watch.js b/src/renderer/views/Watch/Watch.js index 71fdefee..b1b3e887 100644 --- a/src/renderer/views/Watch/Watch.js +++ b/src/renderer/views/Watch/Watch.js @@ -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