Commit 757b4692 authored by PrestonN's avatar PrestonN
Browse files

Merge branch 'hotfix'

parents b206f4cf 1e2a5280
{
"name": "FreeTube",
"version": "0.5.2",
"version": "0.5.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
{
"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": {
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment