Progeny42 / refrapt

Tool to create local Debian mirrors using Python
GNU General Public License v3.0
34 stars 5 forks source link

[REQUEST] Display progress in bytes instead of by file #27

Open efficks opened 2 years ago

efficks commented 2 years ago

Describe the feature(s) you would like, and why When downloading archive files, refrapt display the remaining file and the file by second. This cause TQDM progress bar to be misleading in the remaining time beacause each file have different size. It woul be useful to display the remaining bytes with TQDM instead of remaining files. TQDM could already support display for byte format.

Does not having this feature stop you from using Refrapt? Not at all. Thank you for your tool. Do you eventually accept pull request?

Progeny42 commented 2 years ago

It's possible to do this, would require some rework to pass the file sizes around. At the moment, the download function is just passed a list of urls, and the kinds of file being downloaded.

I'm happy to accept pull requests; If you have the inclination to add this feature, I can review it, and if it's suitable, accept it.