* Add (somewhat) working group blocking
blocks an input scanlator group
doesn't seem to block official/external-link groups
* Fine tuning adjustments*
- sanitise inputs as much as possible
- add to summary a bit more
- `setDefaultValue` looks to set once and never again. So even if
EditText receives an empty String, it is still valid...
Not sure if I could do it better
* Increment mangadex.extversioncode
When downloading NicovideoSeiga image, the saved file extension has become wrong type. This commit addresses the issue by fixing following errors.
- Images is determined the type by file header. The logic has wrongly assumed Byte.toInt() returns unsigned integer, but it actually returns signed value.
- The server returns application/octet-stream as Content-Type header. But the logic only worked when header is empty.
- Update kotlinter
- Opt in to serialization API to avoid IDE warnings
- Replace some deprecated OkHttp function usages
- Remove some unnecessary Android version checks/targets
Manga names can get awfully long, leading to chapter titles being
so absurdly long that you do not know what you are reading.
This commit simply removes 'span.manga-name' from the urlElement before
extracting the text from it.
* Move chapter images data to atHome Response
Updates ChapterDto and AtHomeDto as per Deprecation notice
* Use new atHome response to fetch chapter pages
this commit does the following:
- updates the Dtos as per deprecation notice
- creates a call to `/at-home/server/` in `pageListRequest`
- made sure to track of how old chapter token is as was previous
practice
- `pageListParse` no longer has the 204 response. Instead we get a 404
response (not sure about the 504 response for /at-home/server too but
have to check again. If its not used now, then it could be removed
- since `atHomeRequestUrl` was necessary for `getValidImageUrlForPage`,
tried to fetch it from the response. As per their docs and our
usecase, it should be fine hopefully
Ref:
https://square.github.io/okhttp/4.x/okhttp/okhttp3/-response/request/
- since /chapter/ no longer has `data` attribute, the additional
check for external chapters was removed
- tested on 0.12.3 (on Mi A2, running Android12): read few
chapter/oneshots without issues
* Increment mangadex.extVersionCode
essentially a Christmas present from MD (for its servers :d)
* remove redundant isSuccessful check
essentially dead code since the check is done by `fetchPageList` before
it calls `pageListParse`
* Add Order By to Mangahasu.kt searchMangaRequest
Mangahasu recently implemented this query, without the query it
lists manga alphabetically.
* Increment extVersionCode for Mangahasu
* Fix lint
* Make OrderByFilter a Filter.Sort