Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with multiple downloads #17

Open
lrsb opened this issue Mar 26, 2020 · 0 comments
Open

Problem with multiple downloads #17

lrsb opened this issue Mar 26, 2020 · 0 comments

Comments

@lrsb
Copy link

lrsb commented Mar 26, 2020

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant