Open Lucetia opened 3 years ago
me too x
You'll need to amend the browser path executablePath
in this method as well -
https://github.com/snobu/destreamer/blob/1da56990bc23a743452752cd6b6fc20b458b45b5/src/TokenCache.ts#L57
We should fix this and make it common for anything that calls puppeteer but that requires time commitment so can't promise anything.
I just solved the error on my Raspberry Pi 3b+, editing the src/TokenCache.ts
and src/destreamer.ts
files.
Just add the the next line at the end of const browser: ...
ignoreDefaultArgs: ['--disable-extensions']
Now my code looks like this and worked succesfully:
const browser: puppeteer.Browser = await puppeteer.launch({
executablePath: '/usr/bin/chromium-browser',
...,
ignoreDefaultArgs: ['--disable-extensions']
});
Hope this can help you guys.
Since I couldn't get it to load chromium with puppeteer I had to go through and put in the manual path in the destreamer.ts file.
When I run destreamer I have it process a file that contains a bunch of links. Once it gets to Video 19 / 20 it will start to fail.
So basically Videos 1-18 or 1-19 (first time it stopped after 18, second time was 19). Then when it goes to download the next video and refresh the access token it comes up with a error. It looks like when the refresh goes to process it falls back to the puppeteer version of chromium (which I had issues with in the past and had to put in the manual path).
I'm not sure if this is enough information to help figure out what might be causing it, but this is what occurs on my screen: