10 Commits

Author SHA1 Message Date
arkon
50bf2a56e5
Update dependencies; drop Android 4.x support (#6742) 2021-04-28 15:38:05 -04:00
RePod
a942bdc87a
LANraragi: Category, Random, and DNS fixes (#6379)
* LANraragi: Category to own function and observe on io

Move category retrieval to own function for init and refreshing when FilterList is reset (for the next one...) to maintain sync without restarting.
Observe on io instead of mainThread to avoid exception for "large" requests.
Also considered: callbacks.

* LANraragi: Clean up getArtist and getDateAdded

* LANraragi: Safer getRandomID

* LANraragi: Improve Random item visibility

Previously a server with a dirty DB would have conflicting numbers and need to run a clean to fix them.
That's still the case but that's not the extension's problem and those numbers are no longer considered.
Switched to a querySize check to remain only on the initial Browse page.
Remove previous Latest query smuggling due to above.

* LANraragi: Ignore DNS over HTTPS

Fixes #6341
Similarly not act without a configured server.
I miss you, return early...

* LANraragi: Init random ID observe on io

Drop mainThread entirely.
2021-04-01 08:42:50 -04:00
RePod
b5ef15ee35
LANraragi: Random item, clear new status (#6091)
* LANraragi: Introduce Random item.

Appears as the first item under Browse when there's no meaningful filtering.
Maintain Latest flow at the cost of an extra query param.

* LANraragi: Get and use the Random ID.

Helper functions to get a new random ID.
Helper functions to get the ID from weird spots.
Separate network client to not follow redirects, saving server-side extracts.

* LANraragi: Obtain random ID on init.

To save one entire refresh for that quality user experience.
The call is still to a 301 that is not followed.

* LANraragi: Unset isnew on archives.

More obvious since Latest was hooked up.
Separate from actual reading progress.
This was happening indirectly before the previous extension version swapped to API endpoints for metadata.

* LANraragi: Bump extension version

* LANraragi: AZ detection for ID.

Due to how it updates info and chapters independently leading to an expected race condition.
When detected avoid the race by accessing the ID via thumbnail.

Always using the thumbnail moves the race to non-AZs instead.

* Revert "LANraragi: AZ detection for ID."

This reverts commit 28541d8d0daf989c129884090311e49148f05112.
2021-03-10 06:57:16 -05:00
RePod
19adc29d1d
LANraragi: Safer tag parsing. (#5490)
It was possible to get a null into the function and the following split() did not like it.
2021-01-19 17:42:23 -05:00
RePod
3fc1e2fe65
LANraragi: Filters, Latest, misc API. (#5462)
* LANraragi: Handful of filters.

- Descending/new/untagged toggles
- Starting page override
- Namespace sorting
- Categories

* LANraragi: Upgrade chapterListRequest to API.

Use the metadata endpoint.
Preserve WebView for i.e. management.
Pull out the date_added tag for date_upload.

* LANraragi: Verify if a category is selected.

* LANraragi: Hook up Latest.

With some new preferences.

* LANraragi: Switch Category filter from CBs to Dropdown

Soon: LRR has multi-category drifting.
Pins are indicated in the dropdown.
Correct types in Category. I'm blind.

* LANraragi: Change date_upload null check to let.

* LANraragi: Empty string compare to isNotBlank

* LANraragi: Preferences tidying.

* LANraragi: Cleanup Starting Page filter.

RIP the dream of indicating the number of items returned by search without pressing the Reset button.

* LANraragi: More preferences tidying.

* LANraragi: Pagination offset improvements

Previously going back pages from the end would result in the wrong size.
Include stats in the filter option when available to help with manual pagination.
2021-01-17 10:23:45 -05:00
RePod
36f5609434
LANraragi: Update to API 0.7.2 (#4571)
LANraragi: Update to API 0.7.2
2020-10-10 21:44:53 -04:00
arkon
023c26b4a0 Make "Tachiyomi" app name prefix implicit 2020-06-25 22:46:15 -04:00
arkon
efc1877172
Move common app-provided dependencies to common.gradle (#3214) 2020-05-17 16:50:53 -04:00
arkon
dbcb0117cd Remove preference-stub (moved into extension-lib 1.2) 2020-05-09 11:43:41 -04:00
Josef Christian Halim
0f3f79eebd
Add extension for LANraragi (#1383)
* Add extension for LANraragi

LANraragi project page: https://github.com/Difegue/LANraragi

* Drop tag exclusion support and improve tag search perfomance a bit

* LANraragi: API fixes as of 0.6.7

Image routing was 404ing in Mojolicious due to preceding / resulting in //api/page
Manga parsing was failing with "no fun mode" due to wrong URL parameter for key

* Update to newer API

* Fix strange bug on last page

* Increment version code

* Reset increment back to 1 & Instantiate Gson once only

Co-authored-by: RePod <RePod@users.noreply.github.com>
2020-02-01 11:06:38 -05:00