JDevlieghere / Real-Debrid

Real Debrid Google Chrome Extension
Apache License 2.0
26 stars 10 forks source link

Limited concurrent downloads on certain hosters: Queue. #1

Open stefanpante opened 10 years ago

stefanpante commented 10 years ago

Implement a Queue

Instead of using new tabs to start new downloads, we should use the downloads option for extensions. This way we can actually implement a Queue to circumvent the limited concurrent downloads on certain hosters. The Callback function can be used to get the next download

{ "name": "My extension", ... "permissions": [ "downloads" ], ... }

We can use the following method to start our downloads: chrome.downloads.download(object options, function callback)

options = { url: "http://your.url/to/download", filename: "suggested/filename/with/relative.path" }

https://developer.chrome.com/extensions/downloads#method-download