Coder Social home page Coder Social logo

inbasic / turbo-download-manager-v2 Goto Github PK

View Code? Open in Web Editor NEW
134.0 134.0 50.0 342 KB

a multi-thread download manager with a built-in audio, video and image grabber

Home Page: http://www.add0n.com/turbo-download-manager-v2.html

License: Mozilla Public License 2.0

JavaScript 90.11% CSS 4.21% HTML 4.91% Python 0.77%

turbo-download-manager-v2's People

Contributors

inbasic avatar toto6038 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

turbo-download-manager-v2's Issues

Include OPEN option for completed downloads

Currently, when a download is completed, we get the options to "SHOW" or "REMOVE" the download. An additional option to directly and immediately OPEN the downloaded file will be a great time saver.

Also, changing "SHOW" to "FOLDER" or "OPEN FOLDER" will be more obvious to new users....

[Feature request] Add certain function button for all downloads

Hi!

A request to add a button for all of the active downloads, namely "Resume all", "Pause all" and "Cancel all". This would make it significantly easier to work with bulk downloads, that keep stopping.
Maybe somehow related to the issue #39.

Thank you! Otherwise, the extension is very nice and works great!

Threads

On the new version how do you know when the addon is using threading or not? I tested using the page
https://www.thinkbroadband.com/download which supports multi treading but the addon supposedly did not use multi threading(?) as the default firefox dialog popped up and there was no visual indication that threading was used.
Here is another addon that uses multithreading to show that the site supports it and that the addon has a clear visual indication of multi threading.
imagen

Buttons

In the downloads section of the addon the options to resume, restart downloads and copy the download url (which becomes invisible if the file name is too long) are not present. Could you implement them please?

Stucked on last segment

Stuck on downloading the last segment please update this issue as soon as possible
web: 7plus.com.au
Screenshot (2)

The paused file should labelled as "Paused" NOT as "Downloaded" !

Hi dear developer. 1st thank you for this work !
There are certain issues need to addressed. One of them is that: when downloading file, then at middle pause the download BEFORE completed, currently such file labelled in GUI of add-on as "Downloaded" while it is in fact "Paused" NOT downloaded yet ! This should changed !

I test this issue on version 0.4.2 on Firefox on Fedora 30 X64 bit Cinnamon edition.


Please update source code of addd-on here 1st before push it to Firefox on it's add-on page.

[Feature Request] Limit download speed

Sometimes it would be helpful if you could limit the download speed to download large files without loosing all of your internet bandwidth to the one download.
For example if you are downloading large files from a fast server, and you want to stream videos simultaneously.

How to use accelerated download speed?

Is there a particular setting required in order to split files and download them faster? Does it only work for certain types of files or in certain scenarios? I downloaded some large test files both with and without TDM, and the DL speed was identical.

Restore doesn't work; store meta info in idb

If downloads.cache isn't populated (e.g. the extension crashed & was reloaded), then this will fail.

// restore indexdb
{
const restore = async () => {
const os = 'databases' in indexedDB ? await indexedDB.databases() : Object.keys(localStorage)
.filter(name => name.startsWith('file:'))
.map(name => ({
name: name.replace('file:', '')
}));
for (const o of os) {
downloads.download({}, id => {
const {core} = downloads.cache[id];
core.restore(o.name).catch(e => {
console.warn('Cannot restore segments. This database will be removed', e, core);
try {
core.properties.file.remove();
delete downloads.cache[id];
}
catch (e) {}
});
}, undefined, false);
}
};
chrome.runtime.onStartup.addListener(restore);
chrome.runtime.onInstalled.addListener(restore);
}

This could be fixed by adding this to manager.js:

manager.updateDb = (obj) => {
  if (manager.db) {
    const transaction = manager.db.transaction('downloads', 'readwrite');
//    transaction.oncomplete = resolve;
    transaction.onerror = e => reject(Error('Manager.updateDb, ' + e.target.error));
    transaction.objectStore('downloads').put(JSON.parse(JSON.stringify(downloads.cache[obj.id])));
    transaction.commit();
  };
};

{
  request = indexedDB.open('downloads', 1);
  request.onupgradeneeded = () => {
    // TODO - Remove this line when Firefox supports indexedDB.databases()
    if (('databases' in indexedDB) === false) {
      localStorage.setItem('downloads', true);
    }
    request.result.createObjectStore('downloads', {
      keyPath: 'id'
    });
  };
  request.onerror = e => reject(Error('File.open, ' + e.target.error));
  request.onsuccess = () => {
    manager.db = request.result;
    manager.opened = true;
  };
}

downloads.onChanged.addListener(manager.updateDb);

Then one could do something like this at that restore:

req = manager.db.transaction('downloads','readonly').objectStore('downloads').getAll()
req.onSuccess = () => { 
 ...
}

However, the IDB storage necessarily removes functions, callbacks, etc. So downloads.download would need to be refactored to accept this.

Maximum number of simultaneous downloading jobs not working

I've just started using this extension, and the 'Maximum number of simultaneous downloading jobs' setting doesn't seem to be working. I have it set to 3, but when I download multiple files using the 'Download Media' context menu option, the number of simultaneous downloads isn't limited at all.

Also, it's not clear to me how (even after reading the FAQs) this extension integrates with Firefox's native downloader exactly. For example, if I select the native "Save Video As..." in the context menu, will I still get multi-threading if this extension is active?

Using version 0.6.4 on Firefox 85.0 for Linux.

Thanks for maintaining this extension!

Defaults no save

Defaults settings after click on "Save" button no save items but same as Reset button... refreshed tab aand items is empty.
Chrome browser

[Feature request] add "Grab PDF immediately" option

Dear when I was using uGet or XDM, such programs grab PDF file just when I clicked them NOT waiting PDF to be opened 1st.

After removing such programs & moving to use this nice add-on, PDF file when clicked it is not grabbed, but opened 1st then user need to click on icon of download of this PDF to be downloaded. This could be useful if PDF size is smale such as 1 or 3 or 9 MB, when to many users it is preferable to view PDF before download it. But this is extremely painful if size of PDF is very lard like 100 MB, when it will be more suitable to download it 1st before view it (this will be faster) ......

For that I would like to suggest on you to add new option "Grab PDF immediately" & make it disabled by default, so that user can enable it if dealing with huge size PDF files.

"Clear completed" should not remove "paused" file(s) from GUI of add-on !

Currently, if user pause a file (or files) at before download completed, then click "Clear completed" button, the paused file(s) will be removed from GUI & this is wrong & should not happened !

I test this issue on version 0.4.2 on Fedora Linux 30 X 64 bit.


Please update source code here before push it to Firefox add-on page.

User customizations not saved currently !

I'm using this add-on on Firefox on Fedora Linux 30 X 30 bit Cinnamon edition.

I noticed that when I view "Preferences" page of this add-on, I see the fields of ALL parameters, are EMPTY !

When I edit them then click on "Save", they return to be empty again !

What is this ?

Not identify links!

Now automatically updated latest version... Turbo Download Manager (3rd) Version: 0.5.0/inbasic

Old (v2) working normally, new unusable:

The page include video (playing).
Old version: link checked, viewed, download button pressed, download started.
New: link not available, only blank page, no downloadable file.

Tested in sbot.cf series video sharing site, the video link is clipwatching.com.

Earlier after play started, the icon added number (link number). Now noting.

After manual copy the video link in other downloader... pasted in the plugin, and started download... the download started STOCK DOWNLOADER, not this Turbo Download Manager.

How to downgrade to working version? (Opera/extensions stite only new version available.)

Downgrade solved! to 0.4.1 -->
Downloaded v2 in zip format and rename .crx filetype, add Opera, security accept, installed.
Link detected, size detected, add download... and PAUSED!!! Not started, RESUME text blue, not working, settings not saved.

[Feature Request] "Automatic resume" to retry downloads

Problem
Some large files (like machine learning models) are huge and keep stopping while downloading, it's a bit annoying to have to click "resume"

Feature
Would be great to have a setting to automatically resume downloads when the file stops.

It probably shouldn't retry continuously (to avoid being blocked by the site), but could probably "try and resume" the download a set number of times, before requiring user input.

Anyway, great extension, has helped me a lot thank you 🙏

TDM never downloads with more than 1 thread

I use Firefox on multiple versions of Windows, OSx, and Linux. Turbo Download manager was installed to replace DownloadThemAll when the idiots at Mozilla locked out that and many other add-ons requiring massive rewrites and questionable restrictions. However, TDM cannot in either system with the most current version of FF, be configured. Whenever I try to set the number of threads per file type and timeouts ..., your addon zeros out my entries as soon as they are saved. The only time I can check the number of threads TDM is actually using appears to be by right clicking it's toolbar icon, selecting Add New Jobs, and clicking on Grab all Images. When I do that it always defaults to a single thread for each file.

I Will NOT use the spyware called Google Chrome, so please don't suggest that.

Prepopulate media link's referer with current page's url

I'm often loading videos from different sites which checks for referer header which should equals the page's url, so it makes me copypaste url manually.
Maybe that's a good idea to just prepopulate it's value with page's url or introduce a checkbox at least?

Feature Request: Ask Permission before Downloading (with option to save file temporarily)

In Firefox 98, the default behavior for downloading files changed. Before, it would ask if you wanted to save the file permanently, open it for temporary use, or cancel/block the download altogether. Now, it automatically begins the download, with the Downloads folder as the default location, with the only option available being to cancel the download altogether. I haven't used Google Chrome since 2019, but this seems to be in line with how Downloads are handled there.

Seeing as this is a cross-platform extension, it may be handy to emulate these options within the extension in the event there is no native way to create this in Chrome or Firefox moving forward.

TL;DR, I propose the following options to be added to the extension.

  1. The option to ask before downloading anything.
  2. The option to choose download locations, including to temporary folders.

I need the chunks of multithreads to be downloaded into an external USB drive

Turbo Download Manager 3rd edition 0.6.5 on Firefox on Linux

The free space on the boot drive of my machine is very little. Its free space is too little to download big files into. I want to download files to an external USB drive.

However, Turbo Download Manager seems designed to download chunks of multithreads into the boot drive and to assemble the chunks to a final complete file into the directory that the user specified. The directory for the final complete file can be on an external USB drive, which the user can specify in the Settings of Firefox (General panel > Files and Applications > Download).

I want the chunks of multithreads to be downloaded into an external USB drive. However, I cannot figure out how to specify the directory for the chunks.

Thus, Turbo Download Manager always attempts to download chunks into the boot drive, and finds insufficient space there. As a result, Turbo Download Manager aborts the multithread download,
and passes the operation to the built-in downloader of Firefox, and the built-in downloader very slowly downloads the file with only one thread.

I want the chunks of multithreads to be downloaded into an external USB drive. If the directory for the chunks is not configurable by the user, I would like you to improve Turbo Download Manager so that the directory for the chunks will be configurable to an external USB drive.

Thank you.

Drag & Drop support

Hi. Is there any chance to support drag & drop of downloaded file directly from extension window? I use this feature quite often to populate a downloaded file into the upload input field on another web page or to just open a file by browser in new tab to preview it (especially useful in case of PDF's). This feature is available in standard download view of every browser, I think. I'm mostly using Firefox, here is an example from it
2021-06-08 22 06 08

I would like to completely hide "standard" browser download menu and have only Turbo Download Manager available, but without this feature I can't do that.

Accept more threads

Multithreaded Download Manager developer said it is possible to accept more threads for a download task:

Firefox limits the number of simultaneous connections to a single server. If more than 6 threads are needed, increase network.http.max-persistent-connections-per-server and network.http.max-persistent-connections-per-proxy in about:config .

So you can allow users set default number of threads more than 5 for any download type.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.