Skip to content

Commit 757b469

Browse files
committed
Merge branch 'hotfix'
2 parents b206f4c + 1e2a528 commit 757b469

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "FreeTube",
33
"productName": "FreeTube",
4-
"version": "0.5.2",
4+
"version": "0.5.3",
55
"description": "An Open Source YouTube app for privacy.",
66
"main": "src/js/init.js",
77
"scripts": {

src/js/player.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ function playVideo(videoId, playlistId = '') {
6262
console.log(data);
6363

6464
let videoUrls = data.formats;
65-
let formatUrls = data.player_response.streamingData.adaptiveFormats;
6665

6766
// Search through the returned object to get the 480p and 720p video URLs (If available)
6867
Object.keys(videoUrls).forEach((key) => {
@@ -79,7 +78,7 @@ function playVideo(videoId, playlistId = '') {
7978
});
8079

8180
// Last adaptive format will be best the quality audio stream (migrate fully to adaptive formats later)
82-
playerView.videoAudio = decodeURIComponent(formatUrls[formatUrls.length - 1]['url']);
81+
playerView.videoAudio = decodeURIComponent(videoUrls[videoUrls.length - 1]['url']);
8382

8483
if (typeof (playerView.videoAudio) === 'undefined') {
8584
console.log(playerView.videoAudio);

0 commit comments

Comments
 (0)