Including the archive dir in the result of Wallabag:getLocalArticles
causes all archived articles' statuses to be synced with Wallabag every
time. That leads to an increase in sync times from seconds to minutes
(or even more if one's archive is larger than hundreds…).
The fix is simple: skip the archive dir when scanning.
(As a side effect, this allows one to organise their archive dir using
subdirs, which is similar to the motivation of the PR that broke this…)
Fixes: 896646bf8b ("Reworked the Wallabag plugin to recursively scan the download directory (#15558)")
Fixes: https://github.com/koreader/koreader/pull/15558#issuecomment-5136923551
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
* Adds an optional setting to kill all dropbear processes when stopping the server, giving users control over whether active sessions are terminated.
* Modify signal sending to use pkill and kill
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
looking for article files. Only scans the directory once per operation.
This allows you to sort articles into subdirectories once they have been
downloaded if you want to.
my webdav server (using [dav-server](https://crates.io/crates/dav-server/)) returns
```xml
<D:collection></D:collection>
```
instead of
```xml
<D:collection/>
```
Gives Hotkeys the ability to configure gamepads, at least to a degree. Advanced users might wish to use a shoulder button or a trigger as a modifier like in Tony Hawk or Devil May Cry. But in that case I suggest they might be advanced enough to make a follow-up PR as well. It's out of scope for this one anyway.
Things like deadzones might prefer to be independently configurable in the future, but then again it's a reader app.
Depends on <https://github.com/koreader/koreader-base/pull/2376>.
Calibre's author_sort field carries the curated "Surname, Forename"
form for each author -- distinct from the display string in authors,
and the only reliable way to get surname-ordering right for compound
names, particles, and inverted-naming cultures (CJK, Hungarian).
slim() currently strips this field when writing the device-side
.metadata.calibre after a wireless transfer, even when desktop Calibre
includes it in the transfer payload. Downstream plugins that want
correct surname ordering can't get at it for libraries synced via the
Calibre Companion plugin -- reported in the Bookshelf koplugin issue
tracker by a user with ~2250 books all showing empty author_sort
after sync, despite their desktop Calibre having the field populated
on every book.
Add "author_sort" to the used_metadata whitelist so it's preserved on
the device-side file. Books without the field continue to load
cleanly (slim's "or rapidjson.null" handles missing fields); on-disk
size grows by a small per-book constant.
search_used_metadata stays unchanged -- search displays the author
string, not the sort form.