Last 12 weeks · 0 commits
4 of 6 standards met
This package has gotten very popular. Unfortunately, I don't have that much time to maintain it anymore. I made it for my personal need of automatically handling downloads in my apps using the API. Later on, someone submitted to be able to handle individual downloads, and this is the API that many now depend on, but I don't use it myself. The first task would be to upgrade the and dev dependencies and fix the tests. Next would be to help get https://github.com/sindresorhus/electron-dl/pull/65 merged. I could also need help triaging issues.
Currently, electron-dl does not automatically resume interrupted downloads, even when returns . The case where a download is interrupted is currently not handled at all in the event. This can lead to failed downloads, especially on Windows. With PR #173, I try to solve this problem with: Automatically calling if possible A configurable (default: 60) Aborting if the limit is reached without success
The overwrite option was false and the file option was used. If the file name is the same, it will continue to be overwritten with one file. ex. filename : "a" The motion I want: "a", "a(1)" Current motion: "a"
Support automatic resumption of interrupted downloads Summary This pull request improves the handling of the download state in . Currently, when a download is interrupted and the event is emitted, there is no automatic attempt to resume the download. This PR includes: Automatic resumption of interrupted downloads if returns true. A configurable retry limit using the parameter (default: 60 attempts). Abort handling if the retry limit is reached without a successful resume. Motivation According to the official Electron documentation, interrupted downloads can typically be resumed within the event by using . There was a previous attempt to address this in PR #71, but it was not merged at the time. Without this improvement, interrupted downloads may fail permanently (only on Windows) even if they are resumable. This PR improves download stability by automatically retrying interrupted downloads that can be resumed, helping to recover from temporary network problems. Example Usage ```js download(view, "https://google.com", { retryLimit: 60 // Optional, default is 60 });
Repository: sindresorhus/electron-dl. Description: Simplified file downloads for your Electron app Stars: 1208, Forks: 136. Primary language: JavaScript. Languages: JavaScript (93.4%), HTML (6.6%). License: MIT. Latest release: v4.0.0 (2y ago). Open PRs: 1, open issues: 54. Last activity: 9mo ago. Community health: 85%. Top contributors: sindresorhus, mquevill, dated, jrainlau, papb, sondremare, limebell, Dcai169, deependrax, BendingBender and others.