Just in case, check whether picture exists for commit
This is in addition to the other commit logic.
This commit is contained in:
parent
30555b576c
commit
e753406a6c
@ -180,7 +180,7 @@ class Instaloader:
|
|||||||
filename += '.' + file_extension
|
filename += '.' + file_extension
|
||||||
# A post is considered "commited" if the json file exists and is not malformed.
|
# A post is considered "commited" if the json file exists and is not malformed.
|
||||||
if self.commit_mode:
|
if self.commit_mode:
|
||||||
if self._committed:
|
if self._committed and os.path.isfile(filename):
|
||||||
self.context.log(filename + ' exists', end=' ', flush=True)
|
self.context.log(filename + ' exists', end=' ', flush=True)
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user