Skip to content
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

Improve resuming partially downloaded sets of images #9

Merged
merged 2 commits into from Nov 11, 2014
Merged

Improve resuming partially downloaded sets of images #9

merged 2 commits into from Nov 11, 2014

Conversation

ghost
Copy link

@ghost ghost commented Nov 11, 2014

Checks if the file exists and then compares file size using a HEAD request to decide whether it has already been downloaded. Saves everyone bandwidth and time not redownloading images.

zamabe added 2 commits November 10, 2014 18:08
Use HEAD requests to cut down on the monstrous
amount of bandwidth it takes to find out we
have already downloaded this image by comparing
sizes if they exist.
Compare only existing files' sizes to their sky bretheren.
@ghost
Copy link
Author

ghost commented Nov 11, 2014

Sorry for the ugly "if" line ahead of time. :/

@jamiew
Copy link
Owner

jamiew commented Nov 11, 2014

Awesome, looks great! Thank you

jamiew added a commit that referenced this pull request Nov 11, 2014
Improve resuming partially downloaded sets of images
@jamiew jamiew merged commit 8ae0512 into jamiew:master Nov 11, 2014
jamiew added a commit that referenced this pull request Nov 11, 2014
via #9

Thanks for helping out!
@ghost ghost deleted the HEAD-requests branch November 11, 2014 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant