-
-
Notifications
You must be signed in to change notification settings - Fork 995
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
Feature Request: Set the number of skips before aborting. #115
Comments
If you don't mind me asking, but I'm not sure if I understand that scenario correctly:
What do yo mean? Deleted locally? |
Yes, sorry locally... For example, DeviantArt is a fantastic case, since the files are stored sequently. It's not unusual for some deviantArt collections to be thousands of files (especially for clubs). We'll say, A1 .. A1000, exist in the club. But the user last downloaded from a few months ago, A200..A1000. The user only needs to download A1..A199. So --abort-on-skip, as written will work perfectly. As soon as A200 will be detected on the local drive, it'll abort that collection. But take a different approach, where someone has modified files, or for some reason, older files may have been manipulated (eg Rule 34, users change tags and filenames on a semi-regular basis). (My Rule 34 downloader does this) The user maybe up to date, but some files maybe missing, or altered (eg filename has changed). So let's say the threshold was 10 files, and we have the setup above.. If we stop at A6, then we miss A7, A9, etc al. So I worked around this by creating a user configurable threshold for aborting.
So A6..A7 would clear the counter (downloaded). But --abort-on-skip normally would not be usable here, as I read it, since it would have aborted normally at A1 existing. This preventing the download of A6, A7, A9, A12. The solution existing now, means even if just a small number of files are missing, you would either have figure out the range, or scan the entirety of collection, which could be thousands of files. Where a threshold of 10, 25, or even 50, would allow you mostly guarantee you were up to date. Just a suggestion, of course. |
Just in case you didn't notice, I've pushed a commit (6ed629f) that should solve your problem. Changing |
With the skip feature enabled, please add the ability to indicate how many skips should be allowed before terminating the run.
This should also be reset if none skip condition occurs.
Scenario:
The download location is up to date, but someone deleted files. Normally this would abort as soon as it saw the first file (which already existed). With this added, it would scan past the first file, and see that the nth file doesn't exist, as long it was within the range specified.
The text was updated successfully, but these errors were encountered: