Commit Graph
1472 Commits
Author SHA1 Message Date
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
Min S. Kim ccd0a8004c fix(coverimage): fix operator precedence and parameter usage in cache functions (#15032)
Fix two bugs in the coverimage plugin:

1. cleanCache(): Fix operator precedence in while loop condition. In Lua,
   `and` has higher precedence than `or`, so the bounds check `index <= #files`
   was only applied to the cache size condition, not the file count condition.
   Added parentheses to ensure the bounds check applies to both conditions.

2. getCacheFiles(): Use the function parameters `cache_path` and `cache_prefix`
   consistently instead of mixing them with `self.cover_image_cache_path` and
   `self.cover_image_cache_prefix`.
2026-02-23 22:49:02 +01:00
David 7de4f4c6ef [Hotkeys] correct function call to stop crosshairs (#15009) 2026-02-19 15:33:02 +00:00
Min S. Kim cffae09d50 calibre: use local callback for willRerunWhenConnected (#14998)
`self.re` isn't assigned until later in connect() (line 292), so at line
244 it is always nil — either never set, or cleared by a previous
disconnect(). This caused willRerunWhenConnected to receive nil as its
callback, so after Wi-Fi was brought up the coroutine was never resumed
and the Calibre connection silently died.

Use the local `re` (defined on line 234) which is the correct resume
callback for this coroutine.
2026-02-17 19:06:36 +01:00
Min S. Kim 06b3a4e5b1 Fix max port number typo in Calibre plugin (#14991)
65355 → 65535: the transposed digits caused ports 65356–65535 to
be silently rejected and reset to the default (9090).
2026-02-16 22:14:06 +01:00
David 09982fe6cb NT: stop text selection before any reflow action occurs (#14949)
* refactor onStopHighlightIndicator so it returns early

* stop text selection when opening menus or triggering hotkeys

* use self.ui.highlight (naturally)

* remove duplicated setDirty
2026-02-16 14:23:02 +00:00
Min S. Kim 2932a4a6a2 CoverImage: fix inconsistent vertical alignment of cover image (#14987)
Center the scaled cover image on both axes unconditionally instead
of branching on which dimension is the limiting factor. The branch
was susceptible to floating point rounding in math.floor causing
scaled_w to be 1 pixel less than s_w, flipping the alignment from
vertically centered to top-aligned depending on the cover's pixel
dimensions.

Fixes #14986.
2026-02-16 11:20:15 +01:00
Florian Snow 17281b2f1f Properly set bootlogo on PocketBook (#14985)
* CoverImage: call iv2sh to update PocketBook startup logo on cover change

After the cover image file is written or reset, invoke PocketBook's
iv2sh WriteStartupLogo command so the device's boot logo is actually
updated. The command runs in the background to avoid blocking KOReader.

* CoverImage: use correct screen dimensions on PocketBook for boot logo

For PocketBook devices, Screen:getWidth/getHeight returns
dimensions that iv2sh will not accept. In that case, we should call
Screen:getScreenWidth and Screen:getScreenHeight instead so the
generated boot logo has the correct size.
2026-02-15 19:27:30 +01:00
Christoph Michel 82115dac74 NewsDownloader: fix path separator encoding bug (#14975) 2026-02-14 12:23:15 +01:00
hius07 d62de31b5b Page turns by swipes with disabled touch input (#14914)
- Discussed in #10273
2026-02-05 22:11:18 +01:00
rspilk 9eedae379b kosync.koplugin: add custom hostname option (#14172) 2026-02-04 21:08:46 +01:00
Adrián Mora 7162708429 [plugin] NewsDownloader: add URL path encoding to improve request handling (#14870)
For example for blank spaces in path.
2026-01-26 12:45:29 +01:00
cb12tre 7e90d3fb38 fix(opds): avoid eInk congestion in OPDS download confirmation popup (#14836) 2026-01-20 09:22:09 +01:00
hius07 8aa0322ab7 Execute multi-action gesture/profile one by one (#14803) 2026-01-16 08:42:13 +02:00
hius07 e998db4064 calibre search utf8 (#14813) 2026-01-13 10:19:24 +02:00