Sibusten / derpibooru-downloader

A downloader for imageboards running Philomena, such as Derpibooru.
MIT License
62 stars 6 forks source link

Add support for following HTTP 302 and 301 redirects #52

Open basisbit opened 3 years ago

basisbit commented 3 years ago

When the user sets a booruUrl with www. in the UI but the philomena website has a http redirect to the domain without www, querying the API for search results fails silently.

It would be nice if the app would support HTTP 301 or HTTP 302 responses and follow them to the correct search api page, or at least handle such responses by properly handling them.

Sibusten commented 3 years ago

Are you using v2.1.0?

I tried to reproduce this in 3.0.0-alpha.1 using https://www.manebooru.art, which redirects to https://manebooru.art, and it successfully downloads images