Problem with multiple downloads
lrsb opened this issue · 0 comments
lrsb commented
Hi sup3rgiu, nice tool!!
I have a problem when downloading multiple videos, but not when I'm trying only one video. Also the problem is not consistent.
I think the problem is related to some kind of traffic policy that ms streams enforces.
I suggest you to change the behaviour from a single try to multiple tries with a delay between them.
node polidown.js -u [...] -v "https://web.microsoftstream.com/video/80f24f48-cf62-455a-a936-54fb5f497686" "https://web.microsoftstream.com/video/c58c6b67-3224-4397-bca8-b1d7e6b51f3e" "https://web.microsoftstream.com/video/42e2e413-00e7-47b1-9748-b299677b52ea" "https://web.microsoftstream.com/video/d78a3cfa-2e04-410e-a47e-cff748266689" "https://web.microsoftstream.com/video/e4cbec03-1b63-4f4f-bfcd-4239b8072728" "https://web.microsoftstream.com/video/7b0be1ca-e1ac-4ca9-ba69-9357c4268025" "https://web.microsoftstream.com/video/d92aed10-cdda-4dcc-a10f-012ed2bdf4fa" "https://web.microsoftstream.com/video/acaa99c0-8394-4828-b294-30ae46eb74d6"
Start downloading video: https://web.microsoftstream.com/video/d78a3cfa-2e04-410e-a47e-cff748266689
(node:13645) UnhandledPromiseRejectionWarning: TimeoutError: Navigation Timeout Exceeded: 30000ms exceeded
at /Users/lorenzo/Downloads/PoliDown-master/node_modules/puppeteer/lib/LifecycleWatcher.js:142:21
-- ASYNC --
at Frame.<anonymous> (/Users/lorenzo/Downloads/PoliDown-master/node_modules/puppeteer/lib/helper.js:111:15)
at Page.goto (/Users/lorenzo/Downloads/PoliDown-master/node_modules/puppeteer/lib/Page.js:674:49)
at Page.<anonymous> (/Users/lorenzo/Downloads/PoliDown-master/node_modules/puppeteer/lib/helper.js:112:23)
at downloadVideo (/Users/lorenzo/Downloads/PoliDown-master/polidown.js:146:19)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:13645) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:13645) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.