mirror of
https://github.com/pkkid/python-plexapi
synced 2025-02-16 21:08:27 +00:00
f
This commit is contained in:
parent
fd015439c4
commit
7752e983b6
1 changed files with 2 additions and 1 deletions
|
@ -274,7 +274,8 @@ def download(url, filename=None, savepath=None, session=None, chunksize=4024,
|
|||
# save the file to disk
|
||||
log.info('Downloading: %s', fullpath)
|
||||
if showstatus:
|
||||
bar = tqdm(unit='B', unit_scale=True)
|
||||
bar = tqdm(desc=filename, unit='B', unit_scale=True,
|
||||
total=int(response.headers.get('content-length', 0)))
|
||||
|
||||
with open(fullpath, 'wb') as handle:
|
||||
for chunk in response.iter_content(chunk_size=chunksize):
|
||||
|
|
Loading…
Add table
Reference in a new issue