We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using the following script:
from pyflit import flit url = "my_url.com" segment_number = 4 headers = {'User-Agent': 'Mozilla/5.0 ' '(Macintosh; Intel Mac OS X 10_9_4) ' 'AppleWebKit/537.77.4 (KHTML, like Gecko) ' 'Version/7.0.5 Safari/537.77.4'} opener = flit.get_opener(headers=headers) flit.flit_segments(url, segment_number,opener)
It returns the following error:
C:\Anaconda3\lib\site-packages\pyflit\utils.py in progressbar(total_volume, completed_volume, progress) 97 already * '█', 98 head * '▎', ---> 99 (left - head) * ' ', 100 total_volume / float(1024 * 1024), 101 progress) TypeError: can't multiply sequence by non-int of type 'float'
C:\Anaconda3\lib\site-packages\pyflit\utils.py in progressbar(total_volume, completed_volume, progress) 97 already * '█', 98 head * '▎', ---> 99 (left - head) * ' ', 100 total_volume / float(1024 * 1024), 101 progress)
TypeError: can't multiply sequence by non-int of type 'float'
The error can be fixed by the following line: 99 int(left - head) * ' ',
The text was updated successfully, but these errors were encountered:
7a159ec
@cunhaal Thank you for the catch.
Sorry, something went wrong.
No branches or pull requests
When using the following script:
It returns the following error:
The error can be fixed by the following line:
99 int(left - head) * ' ',
The text was updated successfully, but these errors were encountered: