nicki fc7598bdcf
more QoL fixes for MangaDex (#18672)
* fix spelling for villainess in en translations

* custom user agent + more md@h logging

adds a custom user agent setting primarily intended for testing
do note that spoofing to be a different browser might fetch you trouble
as MangaDex's new hotlink/bot abusers can kick in action

also add logging to figure out which MD@H node users are hitting
as currently, the fallback was not observed to be changing even after
a while; leading to user's keep failing to fetch images

* more improvements

make the `Extra` header more verbose
use a `customUserAgent` sharedpreferences variable so that code looks
cleaner
move the useragent logic into an interceptor so that there is no
need for restarting the app after every useragent change

* completely switch to useragent interceptor

removes builder header modification
remove additional logging while testing (didn't really work as
expected since I kept hitting uploads.mangadex.org anyhow,
+ the interceptor logs weren't useful otherwise)
switch to hardcoding version code in header since it wasn't working
as expected...
add linting from android studio gradle release build

* increment extVersionCode

* oopsie be careful of comments

* properly close unsuccessful requests to mdah node

need to ensure this so that it doesn't crash (which has happened before)

inb4 this is why the fallback url never works....
2023-10-23 13:45:32 -03:00
..
2023-10-23 13:45:32 -03:00