Commit Graph
1486 Commits
Author SHA1 Message Date
hius07 21ead54aaf CloudStorage: save 'upload folder' (#15408) 2026-05-19 17:04:26 +03:00
hius07 a8336db203 Statistics main: fix pic documents; enable deleting settings (#15387) 2026-05-19 17:03:52 +03:00
hius07 7b4b759678 getHomeFolder() (#15400) 2026-05-18 10:27:50 +03:00
hius07 fd986fa119 BookShortcuts: fix settings (#15392) 2026-05-17 17:03:25 +03:00
AndyHazz f37f66c58b plugins/calibre: preserve author_sort in slim metadata (#15398)
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.
2026-05-17 10:19:56 +02:00
hius07 f51eb40d70 Perception expander: minor fixes (#15364) 2026-05-16 13:08:18 +03:00
hius07 4a66d792a9 OPDS: 'crawlable' relation (#15384) 2026-05-15 07:40:45 +03:00
hius07 c5687b320a NewsDownloader main: enable deleting plugin settings (#15382) 2026-05-15 07:40:14 +03:00
hius07 225fe6b8de Wallabag main: settings fixes (#15383) 2026-05-15 07:39:49 +03:00
hius07 09da1ee0aa KoSync main: enable deleting plugin settings (#15379) 2026-05-14 07:43:29 +03:00
hius07 ebfad3f6b9 BatteryStat main: enable deleting plugin settings (#15378) 2026-05-14 07:43:07 +03:00
hius07 9bcad05e8c QR from clipboard: enable highlight button on devices without clipboard (#15363) 2026-05-12 20:41:01 +03:00
hius07 649a2668f6 HttpInspector: enable deleting plugin settings (#15373) 2026-05-12 20:40:05 +03:00
hius07 8c1c241aa5 VocabBuilder main: sync action; enable deleting settings (#15372) 2026-05-12 20:39:28 +03:00
hius07 fe3775b077 DocSettingsTweak main: open settings file when needed only (#15355) 2026-05-10 08:26:30 +03:00
David ed695fe34f [DictQuickLookup] add custom button layout (#15184)
Provides an API for plugins and patches to add buttons to dictionary widget
2026-05-04 22:34:40 +01:00
hius07 02a474d301 Profiles: external auto-exec triggers (#15329) 2026-05-03 20:00:09 +03:00
Иван Vandot 41c9e02b5b NewsDownloader: per-feed max_age option (#15322) 2026-05-02 10:49:38 +02:00
hius07 76330cae5d Folder shortcuts: standard folders (#15323) 2026-05-02 09:58:22 +03:00
Lucas Zampieri e083b09aad feat: ExternalKeyboard: allow plugin to load on Kindle (#15248)
The externalkeyboard plugin was unconditionally disabled on Kindle
because it gates on Kobo-specific OTG sysfs paths (ci_hdrc.0/role,
usbc0/otg_role). However, the keyboard detection and hotplug handling
machinery (findAndSetupKeyboards, onEvdevInputInsert, setupKeyboard)
is already fully generic — it uses fbink_input which works on Kindle.

With the companion koreader-base patch adding a uevent listener to
input-kindle.h, EvdevInputInsert events now fire on Kindle when UHID
devices are created (e.g., by kindle-hid-passthrough). This patch
lets the plugin load on Kindle to handle those events.

Changes:
- Replace the OTG-only gate with a check that allows Kindle through
- Guard OTG role management (init, menu, onExit) behind has_otg_role
  so it only runs on platforms with OTG sysfs knobs
- On Kindle init, scan for any keyboards already present
- Hide OTG menu items on Kindle (only show Help)

Kobo behavior is completely unchanged.

Closes: https://github.com/koreader/koreader/issues/14359
2026-05-01 09:53:31 +02:00
Nick Perez 5941d022a4 KOSync: optionally send document metadata with progress sync (#15306)
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
2026-04-29 12:59:52 +02:00
hius07 ae8dbee9f6 Gestures: keep settings in the base class (#15278) 2026-04-28 20:20:41 +03:00
David 1e0e859ba8 [Hotkeys] add single-key shortcuts (#14867) 2026-04-28 15:09:12 +01:00
Benoit Pierre cb3fb5b663 plugins/vocabbuilder: minor cleanup 2026-04-27 18:09:13 +02:00
Benoit Pierre edcb814780 plugins: avoid legacy use of double quoted sqlite strings
Cf. koreader/koreader-base#2338.
2026-04-27 18:09:13 +02:00
hius07 240f591d39 MoveToArchive main: load settings when needed only (#15302) 2026-04-24 07:43:55 +03:00
hius07 e9628fe7c6 Read timer main: start action, expiry message (#15289) 2026-04-22 08:54:14 +03:00
weijiuqiao e0d285f085 vocabbuilder.koplugin: Add forgot button in "Vocabulary exists" popup window (#15297) 2026-04-21 16:42:12 +02:00
hius07 2bf682784c OPDS main: load settings when needed only (#15283) 2026-04-20 07:59:38 +03:00
hius07 f1650b7297 Cloud storage main: keep settings in the base class (#15274) 2026-04-20 07:59:00 +03:00
hius07 7eee2c15d9 Profiles: keep settings in the base class (#15270) 2026-04-20 07:58:30 +03:00
hius07 c686e5a7e8 Cloud storage: upload selected files (#15243) 2026-04-08 13:56:38 +03:00
Frans de Jonge 2afc912a57 [chore, plugin] Remote deprecated metadata name attribute 2026-04-05 21:52:53 +02:00
hius07 42bc2af95a Cloud storage: default server (#15226) 2026-04-05 17:42:06 +03:00
hius07 daf6478cf3 SyncService is replaced by Cloud storage plugin (#15210) 2026-03-31 17:22:35 +03:00
Rolando Urquiza 799d771f9c Fix check for current directory in webdav listing (#15192) 2026-03-29 08:18:07 +03:00
Frans de Jonge 6fd48d8739 [fix] NewsDownloader: reduce content-type to mimetype (#15189)
Fixes #15174.

Regression in #15065.
2026-03-26 17:30:20 +01:00
hius07 72aa026318 Cloud storage+ (#15150) 2026-03-25 08:06:18 +02:00
Tomáš Janoušek df0b3ead5b coverimage: only update on rotation if rotate image enabled (#15179)
Creating the cover image delays rotation a little bit (half a second,
even if cached), although it could be several seconds on some PocketBook
devices since #14985 which synchronously invokes `sync` after creating
the cover.

To work around this, skip creating the image in the onSetRotationMode
event hook if "Rotate image" is disabled as the resulting image would be
exactly the same. The speedup is noticeable even if the cover cache gets
hit.

(The issue with synchronous `sync` taking several seconds will be fixed
later once we figure out whether any PocketBook devices actually need
the `sync` or not.)

Related: https://github.com/koreader/koreader/issues/15177
Related: https://github.com/koreader/koreader/pull/14985
2026-03-25 06:58:45 +01:00
hius07 628ea23817 Ensure device_id (#15151) 2026-03-23 18:07:29 +02:00
hius07 886a8cf400 Export highlights: filters (#15003) 2026-03-20 09:18:01 +02:00
Dani García 825b9bced0 (opds): remove redundant UTF-8 fixup (#15122)
The filename is already sanitized by util.getSafeFilename(), which calls util.fixUtf8() internally.
2026-03-17 12:03:27 +01:00
David fdd810d5a1 Refactor duplication in #15088 (#15094) 2026-03-08 17:39:11 +01:00
Camille HBP 2cef4378d2 fix(calibre-plugin): ensure size is correctly parsed as a number in book info in search (#14881) 2026-03-08 12:34:10 +01:00
David 33654af8a7 [Calibre] preserve uuid field in calibre metadata serialisation (#15088)
Otherwise calibre wil raise an error when its nil:

```
calibre, version 9.4.0
ERROR: Error: Error communicating with device

'uuid'

Traceback (most recent call last):
  File "calibre/gui2/device.py", line 110, in run
  File "calibre/gui2/device.py", line 581, in _books
  File "calibre/devices/smart_device_app/driver.py", line 58, in _synchronizer
  File "calibre/devices/smart_device_app/driver.py", line 1316, in books
KeyError: 'uuid'
```
2026-03-08 09:11:27 +01:00
Min S. Kim 0c6d217e37 OPDS: fix off-by-one in sync sub_table access (#15073)
When an OPDS catalog entry's URL resolves to a sub_table with only one
element, sub_table[2] returns nil, causing a crash on the subsequent
item.acquisitions access. Fall back to sub_table[1] when index 2 is nil.
2026-03-05 08:51:27 +01:00
witcher a7cb81c229 [plugin] NewsDownloader: allow downloading supported documents (EPUB etc.) (#15065) 2026-03-04 16:56:09 +01:00
Min S. Kim 4cc49962c3 OPDS: guard against entries with no URL in sync
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.
2026-03-03 23:06:10 +01:00
ge-roy 0ffe37f8bb SSH.koplugin: option to force key-only auth (#15038)
User can enable key-only access to enhance security,
useful when using public WiFi networks, and just a good rule
even for well-known or home networks.
2026-02-27 09:17:49 +01:00
Min S. Kim 3e796f3b4d calibre: escape dot in gsub pattern for series index cleanup (#15037)
The unescaped `.` in `".00"` matches any character followed by two
zeros. For a series entry like `"00001.00 | Title - Author"`, the
pattern matches `000` at position 1 instead of the intended literal
`.00` at position 6, producing `"01.00 | Title - Author"`.

Escape as `"%.00"` to match a literal period.
2026-02-25 08:55:50 +01:00