Skip to content

Commit 7752e98

Browse files
committed
f
1 parent fd01543 commit 7752e98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plexapi/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ def download(url, filename=None, savepath=None, session=None, chunksize=4024,
274274
# save the file to disk
275275
log.info('Downloading: %s', fullpath)
276276
if showstatus:
277-
bar = tqdm(unit='B', unit_scale=True)
277+
bar = tqdm(desc=filename, unit='B', unit_scale=True,
278+
total=int(response.headers.get('content-length', 0)))
278279

279280
with open(fullpath, 'wb') as handle:
280281
for chunk in response.iter_content(chunk_size=chunksize):

0 commit comments

Comments
 (0)