add options to control usage of .part files (#29)

- '--no-part' command line option to disable them
- 'downloader.http.part' and 'downloader.text.part' config options

Disabling .part files restores the behaviour of the old downloader
implementation.
This commit is contained in:
Mike Fährmann
2017-10-24 23:33:44 +02:00
parent 158e60ee89
commit 963670d73b
7 changed files with 81 additions and 21 deletions

View File

@@ -92,6 +92,21 @@ Description Controls the progress indicator when *gallery-dl* is run with
Downloader Options
==================
downloader.part
---------------
=========== =====
Type ``bool``
Default ``true``
Description Controls the use of ``.part`` files during file downloads.
* ``true``: Write downloaded data into ``.part`` files and rename
them upon download completion. This mode additionally supports
resuming incomplete downloads.
* ``false``: Do not use ``.part`` files and write data directly
into the actual output files.
=========== =====
downloader.http.retries
-----------------------
=========== =====

View File

@@ -3,6 +3,7 @@
"netrc": false,
"downloader":
{
"part": true,
"http":
{
"retries": 5,