More control about connection retry mechanism

- If when retrying a failed connection ^C is hit, the retrying is
  aborted,

- Option --max-connection-attempts to override default of how many
  connection attempts should be made.

Closes #51.
This commit is contained in:
Alexander Graf
2017-09-29 16:09:15 +02:00
parent e0ed4cf16c
commit a1920b97a4
2 changed files with 44 additions and 25 deletions

View File

@@ -142,6 +142,12 @@ How to Download
User Agent to use for HTTP requests. Per default, Instaloader pretends being
Chrome/51.
.. option:: --max-connection-attempts N
Maximum number of connection attempts until a request is aborted. Defaults
to ``3``. If a connection fails, it can by manually skipped by hitting
:kbd:`Control-c`. Set this to ``0`` to retry infinitely.
Miscellaneous Options
^^^^^^^^^^^^^^^^^^^^^