Closed lahuna closed 1 year ago
Hi Lahuna!
Unfortunately, this PR won't work quite how you expect. It doesn't handle the case where:
This problem is actually going to be a bit harder to work through, as there are actually a number of situations - once you start trying to fix all edge cases - where the global.STOP_AT is reached earlier than the global.START_AT.
I think what you'd actually have to do is wait to write a new STOP_AT value to disk until after the run is completed ... but then that creates edge cases of its own.
If you'd like to take another stab at it, please do! (But I also know I've let this sit for the better half of a year before responding, so I suspect you've probably moved on.)
Matt, what do you think about this change to resume a download using a sync_start.txt file? See processMediaItemsPageResponse comments for explanation.