crunchy-labs / crunchyroll-rs

🦀 Pure Rust implementation of the Crunchyroll API
Apache License 2.0
63 stars 14 forks source link

Replace isahc with reqwest as http library #2

Closed bytedream closed 1 year ago

bytedream commented 1 year ago

In 41a6a10 we changed the used http library from reqwest to isahc as Crunchyroll made a major update which broke the library and could only be bypassed by isahc. They added a cloudflare bot check which (sadly) detected the library and made it unusable. The only solution I found at the time was to use openssl (with curl), and isahc was the only library available which provided all the required features. But with the help of @adracea we were able to archive the bypass, which I though was only possible by using isahc, using reqwest. Given that reqwest is the more popular library, was still used in the latest release and requires way less hassle to setup (especially on Windows), we're switching back to it with this PR.

adracea commented 1 year ago

https://github.com/crunchy-labs/crunchyroll-rs/actions/runs/3704778630/workflow btw the CI broke