3 Commits

Author SHA1 Message Date
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
Alessandro Jean
9579b5f145
Minor improvements to the MangaDex code (#17573)
* Some minor improvements to the MangaDex code.

* Change capitalization of some other tags.
2023-08-19 11:56:14 -03:00
beerpsi
c367e3b126
Add a new lib-i18n to make message translation easier (#17336)
* Add support to better internationalization with a new lib.

* Add info about `lib-i18n` in the contributing guide.

* Use lib-i18n in M+ as well.

* Change properties files to UTF-8.

* use the assets/ folder instead of the res/ folder

files under assets/ are addressible by name

* mangadex: add string invalid_manga_id

* M+: Add translations for Vietnamese

* m+: Add Vietnamese to list of available languages

* mangadex: remove duplicate declarations

---------

Co-authored-by: Alessandro Jean <14254807+alessandrojean@users.noreply.github.com>
2023-08-02 14:52:00 -03:00