1
0
mirror of https://github.com/instaloader/instaloader.git synced 2024-09-11 16:22:24 +02:00

Just in case, check whether picture exists for commit

This is in addition to the other commit logic.
This commit is contained in:
sushilicious 2018-06-18 04:42:06 -04:00
parent 30555b576c
commit e753406a6c

View File

@ -180,7 +180,7 @@ class Instaloader:
filename += '.' + file_extension
# A post is considered "commited" if the json file exists and is not malformed.
if self.commit_mode:
if self._committed:
if self._committed and os.path.isfile(filename):
self.context.log(filename + ' exists', end=' ', flush=True)
return False
else: