ripmeapp2 / ripme

Downloads albums in bulk
MIT License
290 stars 37 forks source link

Danbooru fix downloads #164

Closed Undid-Iridium closed 7 months ago

Undid-Iridium commented 7 months ago

Category

This change is exactly one of the following (please change [ ] to [x]) to indicate which:

https://regex101.com/r/sZD31Y/1

I changed the DanbooruRipper class to use OkHttpClient which should make things run faster and be a little easier (at least for Danbooru) I tried getting a connection with Jsoup.connect using a bunch of headers. It seemed to work, but the data that came back made no sense. I could not figure out how to get it to not be gibberish, I know it was encoded via br (Brotli); therefore, I figured I might as well default to a library that can handle it. So, all in all, just some tweaks to make DanbooruRipper more reliable - maybe

Testing

Required verification:

Optional but recommended: