Commit Graph
1371 Commits
Author SHA1 Message Date
David 6c25d045eb Invert progress bar direction, independently of UI layout (LTR/RTL) (#13382) 2025-08-29 08:13:01 +02:00
Frans de Jonge 42b61d29e8 Wallabag: fix archive_finished initialization logic (#14221)
Closes #14214.
2025-08-27 18:13:11 +02:00
hius07 826455961d Export highlights: customizable export filename (#14212) 2025-08-26 09:41:09 +03:00
hius07 6c7efa1bdf expandString(): replace patterns with data (#14181) 2025-08-23 09:27:10 +03:00
Zeedif 73b4dd4bb0 fix(opds): ensure correct file extension on server-provided filenames (#14199)
The `getServerFileName` function could result in a filename without an extension in two main scenarios. First, a server might provide a `content-disposition` header where the `filename` attribute is present but lacks a file extension. Second, the fallback logic of extracting the name from the URL path often fails for dynamic endpoints (e.g., `/download?id=123`) which do not contain a filename.

This change improves the logic by checking if the extracted filename has an extension. If one is missing, the expected `filetype` (which is already known at this point) is appended. This ensures files are always saved with the correct extension (e.g., `.cbz`, `.epub`).
2025-08-20 16:52:32 +02:00
spfenwick c00df15aee OPDS Plugin: Ensure the default download filename is consistent across different platforms (#13709)
* Ensure the default download filename is consistent across different platforms.
The OPDS plugin correctly uses util.getSafeFilename() to remove any special characters from the filename for downloads. However this function works differently on different platforms, with some common characters like : and ? being allowed on some platforms but not others. In particular this may break Process Sync if it is configured to rely on file names. This change gives a better default behaviour by ensuring the default filename is the same across different platforms, while still letting the user change the filename to include special characters if the platform supports them.

* Make util.replaceAllInvalidChars() global and call it rather than copying code.
2025-08-16 21:33:01 +02:00
weijiuqiao bfd2bbb15b VocabBuilder.koplugin: supports removing word in-place after addition (#14127) 2025-08-16 21:29:22 +02:00
hius07 176d3dec6c Profiles: auto exec promptly (#14133) 2025-08-05 12:25:00 +03:00
ly-pa a674bc8510 AutoWarmth: add option to hide the "night mode changed" warning (#13253)
Closes #13163.
2025-07-30 14:30:50 +02:00
zwim 5009d36d79 Fix submenu creation 2025-07-29 20:19:37 +02:00
zwim e48a73cf31 Fix nightmode only in non Expert-Mode 2025-07-29 20:19:37 +02:00
Zeedif 49465b2929 feat(opds): enhance facet menu with icons
This commit enhances the new facet context menu by adding icons for better visual distinction of actions like "Add catalog," "Search," and facet groups.

It also corrects the main menu trigger icon to `appbar.menu` for consistency with its function.
2025-07-28 10:18:38 +02:00
Zeedif f7b160bdda feat(opds): add support for facets via a context menu
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.
2025-07-28 10:18:38 +02:00
Benoit Pierre f5b1208a3e [plugin] terminal: avoid blowing the stack with recursive calls
```
interpretAnsiSeq
addChars
wrappedAddChars
raw_method_call
[…]
strike_callback
transmit
refresh
interpretAnsiSeq
addChars
wrappedAddChars
raw_method_call
strike_callback
transmit
refresh
```
2025-07-25 11:29:25 +02:00
Benoit Pierre a2633b6374 [plugin] terminal: avoid potential out-of-bound read access
When reading `CHUNK_SIZE` characters. Additionally, avoid suboptimal
code (`ffi.string(…)` on the whole buffer followed by `string.sub(…)`
+ concatenation) by using a string buffer.
2025-07-25 11:29:25 +02:00
Offlinemaker fd63e03b30 Allow toggling Kosync auto sync from gestures (#14037) 2025-07-20 12:44:06 +02:00
Volterxien de789615ac Add the ability to launch read timer with a gesture (#14061)
Closes #14014.
2025-07-18 12:12:41 +02:00
Frans de Jonge 70039c9f04 [plugin] Terminal Emulator: implement delWord for terminal (#14059)
Fixes #14049.
2025-07-15 15:40:48 +02:00
fkaduk 9b07f943f5 Wallabag: allow filtering download to starred articles (#14051) 2025-07-13 13:15:22 +02:00
Volterxien 655ba58ae5 Moving download all and remove all buttons in OPDS download menu (#14024) 2025-07-12 09:40:47 +03:00
Volterxien 095b0d7421 Add OPDS sync feature (#13946)
Closes #8494.
2025-07-04 18:02:28 +02:00
hius07 29bbc84de2 Touchmenu: fix menu refreshing on check (#13996) 2025-07-01 21:43:51 +03:00
hrm 7d89cb2ed4 [plugin] Fix wallabag directories' trailing slashes (#14001) 2025-06-30 10:07:00 +02:00
hius07 b2895731f1 Gesture overview (#13909) 2025-06-23 12:18:54 +03:00
David 306fd6c514 [Hotkeys] remove alphabetic hotkeys from K4 (#13950) 2025-06-21 08:12:03 +02:00
Emre 72573fb393 [Calibre] React to SEND_BOOK_METADATA opcode (#13920)
Fixes #12922.
2025-06-17 12:27:11 +02:00
Frans de Jonge da245628e0 [plugin] NewsDownloader: fix getEmptyFeed() call (#13945)
Accidentally changed in #13806.

Closes #13933.
2025-06-13 11:51:57 +02:00
weijiuqiao 7df7ab0da1 VocabBuilder plugin: show copy button on duplication when adding (#13876) 2025-06-10 20:25:27 +02:00
hius07 6133a43512 TouchMenu: optimize item removal (#13901) 2025-06-04 08:15:02 +03:00
Björn Schießle 946638e984 [plugin] Add setting to change the category of the Nextcloud notes (#13883)
Allow to define a category in Nextcloud Notes for exported highlights, default stays "KOReader" if the user doesn't remove it or set another category.
2025-06-03 06:12:19 +02:00
David 765e1e37ba [Hotkeys] bug fix: don't override readerfont when reading pdf/djvu files (#13896)
Reported https://github.com/koreader/koreader/issues/13895#issuecomment-2923450941
2025-05-31 10:19:53 +02:00
Frans de Jonge 0257caad05 Add tests for NewsDownloader (#13806)
To help prevent situations like #13799.

As also referenced in <https://github.com/koreader/koreader/pull/13407#issuecomment-2722714846>.

Also fixes single item RSS and single entry Atom feeds in passing.

References #3073.
2025-05-30 19:20:17 +02:00
Kevin de Moura ba2857cfc1 NewsDownloader: update formatting of byline to be language-neutral and with a space following 2025-05-30 18:54:12 +02:00
Kevin de Moura e421ad972c NewsDownloader: include <dc:creator> name when building article summary html 2025-05-30 18:54:12 +02:00
Kevin de Moura 4b7b25d0a5 NewsDownloader: include <author> name when building article summary 2025-05-30 18:54:12 +02:00
hius07 a0f0a96b4f Profiles auto-exec "On showing folder": add "path is (not) equal" conditions (#13873) 2025-05-30 14:57:58 +03:00
Benoit Pierre a53c1aae59 calibre: increase no-activity timeout (#13846)
Calibre does not send the expected regular "NOOP" pings during
its "Analyzing books on the device…" phase, and that operation
can take a long time (75s for 4500 books on a recent machine).
2025-05-27 22:32:20 +02:00
mergen3107 c582b35ee0 battery stats - nit on wording (#13476) 2025-05-26 19:26:43 +02:00
Benoit Pierre f63c76d6d4 Use new Archiver module where applicable (#13782)
- ArchiveViewer: instead of using unzip and to support more formats
  (only CBR & RAR for now)
- NewsDownloader & Wikipedia plugins: instead of using `ZipWriter`
- device: re-implement `Device:unpackArchive` and get rid of device
  specific `untar` implementations
- readerui: instead of using unzip for document provider detection
2025-05-26 16:52:38 +02:00
Gropinou ad91f074ed Add periods to plugin descriptions for consistency (#13857) 2025-05-26 13:52:29 +02:00
Manas George 33aa1b6dc4 Fix OPDS download list auth by passing credentials to downloadFile (#13851) 2025-05-25 09:30:36 +02:00
hius07 20fee6536d Coverbrowser: optimize display mode switching (#13822) 2025-05-22 18:00:35 +03:00
hius07 178bb823f0 Dispatcher: update action name or value (#13831) 2025-05-22 17:57:36 +03:00
Grigorii Ioffe 0ab0fc8713 [plugin] Add Wallabag network timeout settings (#13786) 2025-05-18 20:41:42 +02:00
Benoit Pierre 68a9a8d1ee calibre: fix setting inbox from menu (#13805)
Regression from #13704.
2025-05-16 20:55:57 +02:00
Frans de Jonge 76e88f9129 [plugin] NewsDownloader: fix RSS feeds (#13799)
Regression in #13407.

Reported in <https://github.com/koreader/koreader/discussions/13752#discussioncomment-13166619>.
2025-05-16 12:10:02 +02:00
Red f1b345e1d3 Add option to start SSH server with KOReader (#13772) 2025-05-13 14:10:59 +02:00
hius07 72f2d4b2ff opdsbrowser: fix "Downloading…" message (#13742) 2025-05-08 17:22:25 +03:00
Martín Fernández 17ce51cb39 Exporter: better logs, bump deprecation message (#13659)
* json: improve error messages
* update deprecation message: joplin
2025-05-05 18:22:01 +02:00
Benoit Pierre 8fef5c1766 calibre: rework connection setup
Faster and with better UI:

- roughly halve a successful connection setup
- drop manual & temporary TCP connection before the real ZMQ one:
  - it slows down the total connection time
  - it's actually counted by calibre as a failed connection attempt:
    after 5 consecutive failures from the same IP, calibre ignore
    further connections, with no feedback to the user, except an
    error trace, until the wireless server is restarted
- avoid unconditional 1s delay before checking for authentication failure
- "searching" & "connecting" (cancellable) dialogs
- stop connection on quit / restart
2025-05-05 18:18:28 +02:00