Added commit mode

The commit mode ensures pictures are not corrupted when Instaloader is
unexpectedly interrupted. In the case that the last picture is corrupted
because of an interruption, Instaloader will redownload the picture.
Since the metadata is the last object saved to disk, we can consider a
post as "committed" if its json metadata file exists and is not
malformed. Instaloader should download any posts which are not
committed. Downside is commit mode requires metadata to be saved.
This commit is contained in:
sushilicious committed 2018-12-09 02:12:45 -05:00
1 parent ece0d11915
commit 30555b576c
3 files changed
+47 -6

No files matched your search

+6
View File
@@ -230,6 +230,12 @@ How to Download
to ``3``. If a connection fails, it can be manually skipped by hitting
:kbd:`Control-c`. Set this to ``0`` to retry infinitely.
.. option:: --commit-mode
Tries to ensure downloaded images avoid corruption in case of unexpected
interruption. If the last picture is corrupted, Instaloader will fix the
picture the next time it is run.
Miscellaneous Options
^^^^^^^^^^^^^^^^^^^^^