When the sync server is unreachable (offline reading, intermittent WiFi,
server down), progress updates are now queued locally instead of being
silently dropped. Queued items are drained on the next successful network
connection.
Queue behavior:
- One entry per document per day (preserves daily reading statistics)
- Entries expire after 4 weeks
- Hard cap of 200 entries as safety net
- Auth failures (401) are not queued (won't resolve by retrying)
- Queue is cleared on logout
Integration points:
- updateProgress: queues on pcall failure or non-auth callback failure
- _onNetworkConnected: drains queue before pulling remote progress
- _onCloseDocument: queues immediately if offline instead of blocking
with goOnlineToRun (avoids WiFi prompts on document close)
Fixes#9267, fixes#10678, fixes#11105
A self-closing content tag (`<content type="text"/>`) has no `">` of its own,
so the lazy `.-` in the `<content type=".-">` rewrite runs forward to the next
entry's content tag and collapses everything in between -- links included --
into a single `<content>`. luxl then parses a mangled tree: entries are dropped
and covers get paired with the wrong titles.
Normalize self-closing content tags to an empty `<content />` element before
that rewrite. Adds a regression test with a self-closing content tag between
two entries.
Fixes#15511
On Kobo, isConnected is aliased to ifHasAnAddress, which returns true as
long as the interface holds any IP — including a stale lease from a
previous network. The early-return gate in turnOnWifiAndWaitForConnection
short-circuits before obtainIP() ever runs, so after switching networks
KOReader reports "Connected" while every request times out on the old
subnet's gateway.
Track the SSID a lease was obtained for (lease_ssid) and add
hasLeaseForCurrentNetwork(), which compares it against wpa_supplicant's
reported association. Guard the fast-path gates in
turnOnWifiAndWaitForConnection and doNothingAndWaitForConnection with it:
on a stale lease, release the old IP and fall through to the normal
reconnect path. lease_ssid is set in reconnectOrShowNetworkMenu (sync
connect) and connectivityCheck (async restore), and cleared when Wi-Fi
goes down or a connection is aborted.
When the backend cannot report an SSID (non-wpa_supplicant platforms),
hasLeaseForCurrentNetwork() returns true so connections are never churned
on uncertainty, preserving existing behaviour everywhere but Kobo.
Refs #14790, #14478, #14716
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GjgwQjZY2xoZPSuSXBJqv8
Send a metadata object (filename, title, authors) with progress sync
requests when the user opts in via a new 'Send document metadata' toggle
(default off). The metadata is silently ignored by the official sync
server but can be used by custom sync servers.
Closes#13810
Ref: #8764
Add a nil check on entry URL in getSyncDownloadList to prevent a
crash when a feed entry has no navigation link. Add a test for
single-quoted attribute feeds.
This commit introduces support for OPDS 1.2 facets, enabling advanced filtering and sorting in compatible catalogs.
To maintain a clean and uncluttered book list, facet options are presented in a dedicated context menu. When a catalog provides facets or a search link, the top-left button now triggers a menu with all available actions.
- Facet links are parsed and grouped by the `opds:facetGroup` attribute.
- The context menu includes facet groups, search, and bookmarking.
- Adds support for `opds:activeFacet` and `thr:count`.
- The parsing logic now cleanly separates feed-level links from entries, correctly handling catalogs with facets but no initial items.
- Unrelated style changes were reverted and the test suite was improved for reliability.
Binary catalogs are more space efficient (total translations disk usage:
14MB instead of 35MB), and easier and faster (roughly 10 times) to load:
no parsing, and less processing (no need to unescape strings).
Not much difference on the Android APK size (a ~600KB reduction), but
other TAR.GZ / ZIP distributions see a reduction of ~3.5MB.
* GestureDetector:adjustGesCoordinate: Remove one layer of indirectiçon in
direction translation
That function call wrapper felt pretty unnecessary to me ;).
* GestureDetector: Translate complex gesture positions, too
i.e., if there's a start and end position, translate those, too.
Fix#13090
Persist is intended for larger objects, which works best for things like cached tiles with some metadata.
For many small to medium entries that you nevertheless don't necessarily want to keep around in memory, that seems a bit inefficient.
SQLite then, is effectively a way of minimizing the amount of writes in this scenario.
Relates to #13061. Depends on #13122.