add option to sleep before each download
This commit is contained in:
@@ -150,6 +150,11 @@ def build_parser():
|
||||
metavar="SECONDS", action=ConfigAction, dest="timeout", type=float,
|
||||
help="Timeout for HTTP connections (defaut: 30s)",
|
||||
)
|
||||
downloader.add_argument(
|
||||
"--sleep",
|
||||
metavar="SECONDS", action=ConfigAction, dest="sleep", type=float,
|
||||
help="Number of seconds to sleep before each download",
|
||||
)
|
||||
downloader.add_argument(
|
||||
"--no-part",
|
||||
action=ConfigConstAction, nargs=0, dest="part", const=False,
|
||||
|
||||
Reference in New Issue
Block a user