jinxo13 / FetchTV-Helpers

Useful tools for FetchTV
GNU General Public License v3.0
11 stars 3 forks source link

suggestion: file download progress #3

Closed mesh-newbie closed 3 years ago

mesh-newbie commented 4 years ago

Hi @jinxo13. Suggestion for file progress download. from clint.textui import progress total_length = int(r.headers.get('content-length')) for chunk in progress.bar(r.iter_content(chunk_size=8192), expected_size=(total_length/8192) + 1):

jinxo13 commented 3 years ago

Hi @mesh-newbie, great idea I've incorporated your code.