mirror of https://github.com/FreeTubeApp/FreeTube
Merge branch 'hotfix'
This commit is contained in:
commit
757b469215
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "FreeTube",
|
||||
"version": "0.5.2",
|
||||
"version": "0.5.3",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue