add simple progress indicator for multiple URLs (#19)

The output can be configured via the 'output.progress'
config value.

Possible values:
    - true:     Show the default progress indicator
                "[{current}/{total}] {url}" (default)
    - false:    Never show the progress indicator
    - <string>: Show the progress indicator using this
                as a custom format string(1).
                Possible replacement keys are:
                - current: current URL index
                - total  : total number of URLs
                - url    : current URL

(1) https://docs.python.org/3/library/string.html#formatstrings
This commit is contained in:
Mike Fährmann
2017-06-09 20:12:15 +02:00
parent 3ee77a0902
commit d5a70f2580
3 changed files with 22 additions and 4 deletions

View File

@@ -59,5 +59,11 @@
"date-max": 253402210800,
"recursion": 0
}
},
"output":
{
"mode": "auto",
"shorten": true,
"progress": true
}
}