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