MStreamDownloader
MStreamDownloader copied to clipboard
TypeError: Cannot read properties of null (reading 'uri')
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....
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'];
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;
it worked for me, I'll give you also the pictures of where put the code, hope you find them useful.