allow specifying number of skips before abort/exit (closes #115)

In addition to 'abort' and 'exit', it is now possible to specify
'abort:N' and 'exit:N' (where N is any integer) as value for 'skip'
to abort/exit after consecutively skipping N downloads.
This commit is contained in:
Mike Fährmann
2018-10-13 17:21:55 +02:00
parent e1d306cc48
commit 6ed629f2b6
3 changed files with 35 additions and 19 deletions

View File

@@ -111,13 +111,19 @@ extractor.*.skip
=========== =====
Type ``bool`` or ``string``
Default ``true``
Description Controls the behavior when downloading a file whose filename
Description Controls the behavior when downloading files whose filename
already exists.
* ``true``: Skip the download
* ``false``: Overwrite the already existing file
* ``true``: Skip downloads
* ``false``: Overwrite already existing files
* ``"abort"``: Abort the current extractor run
* ``"abort:N"``: Skip downloads and abort extractor run
after ``N`` consecutive skips
* ``"exit"``: Exit the program altogether
* ``"exit:N"``: Skip downloads and exit the program
after ``N`` consecutive skips
=========== =====