diff --git a/package-lock.json b/package-lock.json index 39208d04f70e..7a2a48c12699 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "FreeTube", - "version": "0.5.2", + "version": "0.5.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 3775d353ecd8..d7f816cece38 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "FreeTube", "productName": "FreeTube", - "version": "0.5.2", + "version": "0.5.3", "description": "An Open Source YouTube app for privacy.", "main": "src/js/init.js", "scripts": { diff --git a/src/js/player.js b/src/js/player.js index d170b1c75e55..ebaea96bffd7 100644 --- a/src/js/player.js +++ b/src/js/player.js @@ -62,7 +62,6 @@ function playVideo(videoId, playlistId = '') { console.log(data); let videoUrls = data.formats; - let formatUrls = data.player_response.streamingData.adaptiveFormats; // Search through the returned object to get the 480p and 720p video URLs (If available) Object.keys(videoUrls).forEach((key) => { @@ -79,7 +78,7 @@ function playVideo(videoId, playlistId = '') { }); // Last adaptive format will be best the quality audio stream (migrate fully to adaptive formats later) - playerView.videoAudio = decodeURIComponent(formatUrls[formatUrls.length - 1]['url']); + playerView.videoAudio = decodeURIComponent(videoUrls[videoUrls.length - 1]['url']); if (typeof (playerView.videoAudio) === 'undefined') { console.log(playerView.videoAudio);