MStreamDownloader icon indicating copy to clipboard operation
MStreamDownloader copied to clipboard

TypeError: Cannot read properties of null (reading 'uri')

Open 16205 opened this issue 1 year ago • 1 comments

Hi, I am getting this error: "TypeError: Cannot read properties of null (reading 'uri') at downloadVideo (C:\Users\Gabriel\Workspace\MStreamDownloader\downloader.js:303:52)".

This happens when the downloader is done downloading the video fragments, when it starts fetching the audio....

16205 avatar Jun 13 '23 15:06 16205

Hi, same issue here. To resolve this, open downloader.js and put these lines of code before the third for loop (after ' var videoObj = null; '):

var app = parsedManifest['mediaGroups']['AUDIO']['audio'];
img1

and these immediately after the green ' // **** AUDIO **** ' comment:

var varTemp = Object.entries(app)[0];
var varTemp1 = Object.values(varTemp)[1];
audioObj = Object.values(varTemp1)[3];

don't forget to change the line just below

var audioLink = basePlaylistsUrl + audioObj['uri'];

to

var audioLink = basePlaylistsUrl + audioObj;
img2

it worked for me, I'll give you also the pictures of where put the code, hope you find them useful.

teux4545 avatar Jul 04 '23 00:07 teux4545