mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
bump timeouts and improve curl archive method
This commit is contained in:
parent
370adb56bf
commit
7ea36c4adb
2 changed files with 18 additions and 8 deletions
|
@ -123,7 +123,7 @@ def progress(seconds=TIMEOUT, prefix=''):
|
|||
chunk = '█' if sys.stdout.encoding == 'UTF-8' else '#'
|
||||
chunks = TERM_WIDTH - len(prefix) - 20 # number of progress chunks to show (aka max bar width)
|
||||
|
||||
def progress_bar(seconds=seconds, prefix=prefix):
|
||||
def progress_bar(seconds, prefix):
|
||||
"""show timer in the form of progress bar, with percentage and seconds remaining"""
|
||||
try:
|
||||
for s in range(seconds * chunks):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue