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

Update imgboxdwl #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Update imgboxdwl #3

wants to merge 2 commits into from

Conversation

slrslr
Copy link

@slrslr slrslr commented May 31, 2021

Prefix images by number so the image order is the same as in the web gallery. My code is amateur, likely you will improve, yet it seems to be working. Test: sh imgboxdl https://imgbox.com/g/sZ6kIg3f1X

btw: a cosmetic issue (possibly not related to this patch) is that in case the image does not exist on server (yes it happens, thumbnail exist, but not full file), it still downloads the file which then contains:

<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>

slrslr added 2 commits May 31, 2021 16:17
Prefix images by number so the image order is the same as in the web gallery. My code is amateur, but it seems to be working. Test: sh imgboxdl https://imgbox.com/g/sZ6kIg3f1X
I do not know simple way to detect image extension, but this worked.
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