New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fast_update not work with highlights/stories when in commit-mode #257
Comments
Thanks for reporting this and sharing your insights!
That would check_if_committed for each item in a sidecar, though one check would be sufficient.
Or Also, I think passing this _committed state through a class variable is unclean, error-prone and blocking thread-parallelization - we may have merged the PR (#139) too early and probably should reimplement the commit mode. @sushilicious any ideas/thoughts about this? |
This looks fixed/resolved to me, no ? |
No, there hasn't been any work on this. |
Yeah sorry I've never used the stories or highlights feature, so I didn't think to implement the commit mode for that. As is mentioned in the first post, adding the check for committed in @aandergr, sounds totally reasonable to change the _committed state to something else. The patch was mostly just a quick and dirty thing that I wrote up since the lack of a commit state was bothering me. If someone else plans to properly implement this feature, I also recommend using something other than the json metadata file as the flag for "already committed". That file can get quite large, so a different indicator might make more sense. For example, saving currently downloading pictures/videos to a temp file and renaming it after it is done, so uncommitted pics/videos do not enter your download folder. |
There has been no activity on this issue for an extended period of time. This issue will be closed after further 14 days of inactivity. |
Rather than checking the json file to make sure posts have been successfully downloaded, data is stored in a temporary file which is renamed when downloading has finished, as suggested in #257.
This has been fixed by #697.
It is merged into
|
Rather than checking the json file to make sure posts have been successfully downloaded, data is stored in a temporary file which is renamed when downloading has finished, as suggested in instaloader#257.
Describe the bug
When downloading highlights/stories with the commit-mode and fast-update are on,
the fast-update has no effect.
To Reproduce
instaloader -F --highlights SOME_PROFILE --commit-mode --no-posts
Expected behavior
Skip those downloaded, as if commit-mode off.
Instaloader version
4.2.3
Additional context
The reason is that
self._committed
is never set indownload_highlights
anddownload_stories
, and never reset to None after a post is processed (either downloaded or skipped).That means:
_committed
is alwaysNone
, which effectively disables commit-modeAfter a quick review, it seems that add a line of code
self._committed = self.check_if_committed(filename)
at the top ofdownload_pic
fix this issue.However, I think it should be add to
download_stories/highlights
or somewhere else.The text was updated successfully, but these errors were encountered: