snobu / destreamer

Save Microsoft Stream videos for offline enjoyment.
MIT License
2.36k stars 441 forks source link

REQUEST: Extensions to be enabled before load #320

Closed xxcbzxx closed 3 years ago

xxcbzxx commented 3 years ago

Would need Windows 10 Accounts extension.

lukaarma commented 3 years ago

You can plug in the browser you use daily, like Chrome or Firefox, where you already have the extension installed. See here for details

xxcbzxx commented 3 years ago

I tried, but it loads into chromium instead, changed: executablePath: getPuppeteerChromiumPath(), to executablePath: 'C:\Program Files\Google\Chrome\Application\chrome.exe'

but loads into a new profile of chrome not the default profile, which does not have the "Windows 10 Accounts" Extension,

I could not install the extension

Thanks David

xxcbzxx commented 3 years ago

Also I've changed that executablePath: 'C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe' it still opens as a new chromium browser with no extensions or profile associated.

xxcbzxx commented 3 years ago

[WARNING] .token_cache not found.

Launching headless Chrome to perform the OpenID Connect dance...

[ERROR] Error: Failed to launch the browser process! spawn C:Program FilesGoogleChromeApplicationchrome.exe ENOENT

TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

at onClose (C:\Users\David Lay\destreamer\node_modules\puppeteer\lib\cjs\puppeteer\node\BrowserRunner.js:193:20)
at ChildProcess.<anonymous> (C:\Users\David Lay\destreamer\node_modules\puppeteer\lib\cjs\puppeteer\node\BrowserRunner.js:185:85)
at ChildProcess.emit (node:events:376:20)
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:12)
at onErrorNT (node:internal/child_process:476:16)
at processTicksAndRejections (node:internal/process/task_queues:80:21)
xxcbzxx commented 3 years ago

Added ignoreDefaultArgs: true , under executablePath: getPuppeteerChromiumPath(),

lukaarma commented 3 years ago

Ok, sorry if I wasn't able to help, happy that you solved :D