mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.81k stars 968 forks source link

Site Request: PostImg.cc / PostImages.org / PostImage.org #3115

Open github-userx opened 2 years ago

github-userx commented 2 years ago

Example Gallery URL: https://postimg.cc/gallery/DWXFTVR

Issue seems to be they don’t allow hotlinking/retrieving from direct URLs the ones they provide through the share buttons:

https://i.postimg.cc/4yFZ2sbZ/artemis-hq11.jpg

github-userx commented 2 years ago

But with the dl Parameter added to the url it works..

https://i.postimg.cc/zDqBBfyL/artemis-hq11.jpg?dl=1

mikf commented 2 years ago

Individual image links are already supported, it seems:

https://github.com/mikf/gallery-dl/blob/fb2dbb04e2bc967bd4a4a3ae0b0711dfbf8f1c7e/gallery_dl/extractor/imagehosts.py#L219

chio0hai commented 1 year ago

Direct links works for me.

However, the existing extractor has a few issues:

  1. It takes the URL from #main-image, which may be a scaled down version of the image. For example, in https://postlmg.cc/q6n9zf5Z, the resolution of the #main-image image is 1067x800. The one from the "Download original image" button is 1440x1080. I think the "original image" URL should be used instead.
  2. Gallery is not supported.

I am going to make a pull request.

github-userx commented 1 year ago

Message ID: @.***>Fantastic! Thanks! I am using postimages a lot and some forums evene have it added as the default image upload host.

Hrxn commented 1 year ago

With https://github.com/mikf/gallery-dl/commit/2d9e3093caa5667efd64bedfcb73eb89ab041a59 merged, can this be closed?