Skip to content

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