Commit Graph

1253 Commits

Author SHA1 Message Date
Frans de Jonge
bb93c44346 [minor] Normalize more requires (#13074)
I thought I had them all in <https://github.com/koreader/koreader/pull/13055> but I seem to have missed a few.
2025-01-17 21:20:16 +01:00
beedaddy
84eb04ef17 kosync: Make sure there are no leading or trailing whitespaces (#13077)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
2025-01-17 07:49:02 +01:00
Frans de Jonge
8314838add [plugin] NewsDownloader: make <title> match less greedy (#13070)
Some checks failed
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Has been cancelled
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Has been cancelled
On most pages it works fine, but on pages with multiple `</title>` it can match very large amounts of text.

Valid examples include `<svg>` in the HTML, where [`<title>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/title) is used similar to `title=""` in HTML, but of course there could also simply be invalid pages.
2025-01-15 10:07:27 +01:00
Frans de Jonge
87d1678b02 [minor, plugin] NewsDownloader: fix a string that's concatenated without space or newline (#13071) 2025-01-15 10:06:49 +01:00
Frans de Jonge
eb6d4ff422 EPUB: unify include_images logic (#13063)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
Other than the slightly different InfoMessage.
2025-01-14 22:23:37 +01:00
Frans de Jonge
4eea3f0cda [i18n, plugins] Wallabag: use ngettext for plural (#13062)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
2025-01-13 18:26:14 +01:00
Frans de Jonge
12b075a4ac [minor] normalize a few requires (#13055)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
2025-01-13 08:33:18 +01:00
Frans de Jonge
6792bb0a06 [plugin] Gestures, Hotkeys: attempt to work around corrupted gestures file (#13054)
See #13009 for details.

LuaSettings attempts to read a backup if the main doesn't work. If that doesn't work it returns an empty `data` table. But gestures expects there to be defaults inside.
2025-01-13 08:31:06 +01:00
Frans de Jonge
ea23f0c9aa EPUB: mimetype file should not be compressed (#13057)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
According to epubcheck.

```
Mimetype file should only contain the string "application/epub+zip" and should not be compressed.
```
2025-01-12 22:09:19 +01:00
hrm
6a0aa958c9 wallabag: Add option to archive locally, instead of deleting + rewording of menu options (#12949)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
Fix #12712, fix #11687, fix #9151.
2025-01-12 15:28:34 +01:00
Frans de Jonge
9b444cba89 processImg: skip data URI (#13034)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
This is the underlying reason that The Verge + download full article fails, see <https://github.com/koreader/koreader/issues/12953#issuecomment-2580784621>.
2025-01-09 22:41:36 +01:00
Frans de Jonge
274dd6dab3 [plugin] NewsDownloader: use first feed description if it's a table in RSS (#13032)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
Similar to the logic for Atom in #12959.

Reported in https://github.com/koreader/koreader/issues/12953#issuecomment-2580784621

Sample feed https://www.engadget.com/rss.xml
2025-01-09 19:10:15 +01:00
Nikola Kotur
ca660f3b55 [exporter] support multiple authors in Nextcloud (#13005)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
Fixes #12821.
2025-01-06 19:40:35 +01:00
hius07
f0a3e1c63a File list: new display options (#12954)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
2025-01-05 18:59:28 +02:00
Frans de Jonge
cbe211190f [plugin] ReadTimer: interpret the past as a time tomorrow (#12985)
Fixes #12984.
2025-01-05 17:04:10 +01:00
Frans de Jonge
016592e0a3 [plugin] NewsDownloader: add primitive support for relative URLs (#12980)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
Fixes #8611.
2025-01-02 12:45:22 +01:00
Frans de Jonge
10f627e3f9 [plugin] NewsDownloader: reduce HTML idiosyncracies (#12976) 2025-01-02 12:42:10 +01:00
Frans de Jonge
c589db9f61 [plugin] NewsDownloader: fail gracefully when date can't be parsed (#12978)
Fixes #9358.
2025-01-01 12:25:31 +01:00
Frans de Jonge
a707b7c163 [plugin, i18n] CoverBrowser: add missing plural (#12968) 2025-01-01 10:56:04 +01:00
Frans de Jonge
871b8cf381 [plugin] NewsDownloader: download images without extension (#12969)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
Fixes #12967.
2024-12-31 15:49:25 +01:00
Frans de Jonge
a94a2e07ce [lang] Exporter → Nextcloud: use proper arrow (#12970) 2024-12-31 11:44:26 +01:00
Frans de Jonge
b93ce8ba4b [plugin] NewsDownloader: switch default to download_full_article=false (#12965)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
It's a saner default. Much of the time it won't just work but it'll work *significantly better* than `download_full_article=true`.

Additionally it should reduce the chance of being seen as abuse, cf. <https://github.com/koreader/koreader/issues/12953#issuecomment-2565973079>.

Also see #3172.

Since both the UI and the default config include the value, impact may be surprisingly limited.
2024-12-31 00:18:11 +01:00
Frans de Jonge
8de936e4d8 [plugin] NewsDownloader: fix Atom download_full_article=false not working (#12959)
Fixes #3172.
2024-12-31 00:15:36 +01:00
Frans de Jonge
b8af072d9f [plugin] NewsDownloader: support single-entry feeds (#12958)
Fixes #12953.
2024-12-29 17:50:39 +01:00
hius07
0114954fc1 CoverBrowser BookInfoManager: lite getDocProps() (#12936) 2024-12-27 08:16:47 +02:00
hius07
15f5dbef83 Reader: inspect zip file content to choose provider (#12902) 2024-12-19 09:41:19 +02:00
Martín Fernández
e503cc4b9c add provider module (#12641)
* implements a Provider singleton, to be used by thirdparty plugins
* exporter: support for thirdparty providers
* splits plugin loading into two steps: discovery and load
  1. get a list of all candidate plugins to load for the different paths
  2. sort providers before on the rest of them and try to load them
2024-12-18 19:40:22 +01:00
weijiuqiao
85390490da VocabBuilder.koplugin: support option to overwrite word with new context (#12885)
Closes #12506.
2024-12-16 20:10:16 +01:00
hius07
72086b7a26 CoverBrowser: minor fix and remove unused (#12895)
Remove unused UIManager:clearRenderStack().
Previously it was used by CoverBrowser plugin when extending the FileManager popup file dialog with aditional buttons.
Now the buttons are inserted through the api added in https://github.com/koreader/koreader/pull/12845.
2024-12-15 09:14:01 +02:00
David
8f1461316c [HotKeys] Add a 'type to search' setting to hasKeyboard devices (#12860) 2024-12-12 22:23:49 +01:00
David
6565a7eaf6 [plugin] QR: fix failure to load in file browser (#12833)
Cf. https://github.com/koreader/koreader/pull/12746#issuecomment-2510910142
2024-12-12 22:21:32 +01:00
hius07
7efd033489 Profiles main: auto-exec on opening new books (#12884) 2024-12-12 08:53:56 +02:00
David
63fea74597 [Profiles] Search and update profile actions assigned to hotkeys (#12642) 2024-12-10 21:18:09 +01:00
hius07
0386e2619e Patch management: plugin -> core (#12862) 2024-12-08 09:33:46 +02:00
hius07
157c03c42d FileManager: Plus dialog button from CoverBrowser (#12857) 2024-12-07 09:18:18 +02:00
Martín Fernández
a43c9ab535 [exporter] drop unsupported targets: flomo, memos (#12808) 2024-12-06 21:30:18 +01:00
Martín Fernández
162685df50 remove autofrontlight + backgroundrunner (#12809)
* remove autofrontlight
* remove background-runner

thirparty plugins that rely on the backgroundrunner no longer work.
2024-12-06 21:28:56 +01:00
hius07
cd8ef3ceb5 FileManager, History, Collections: expose file dialog buttons (#12845) 2024-12-05 18:54:32 +02:00
Frans de Jonge
9de3b33421 [plugin] Patch management: fix disabling plugin (#12849)
Fixes #12841.
2024-12-04 23:47:20 +01:00
David
f5921eec2a [KOPlugin] Hotkeys, add custom keyboard shortcuts (#12484)
Fix #7308, fix #12336, fix #12744.
2024-12-03 21:04:47 +01:00
zwim
6036761a40 [AutoSuspend] Make day selector less restrictive (#12835)
This allows to set days to zero. As a security fall back setting days and hours both to zero will yield 5m autosuspend time. (to avoid shutdown loops).
fixes #12831
2024-12-03 13:00:52 +01:00
Sébastien Maillard
46b0ec6aa8 AutoStandby: schedule next standby on init (#12815) 2024-12-02 22:32:16 +01:00
Ashwin Kulasegaram
dc9ca4e9a6 NewsDownloader: implement new logic to handle multiple selectors (#12804)
Closes #11430.
2024-11-26 16:39:03 +01:00
mergen3107
e95541ffd3 [Kindle NT] fix terminal and timesync (#12765)
Closes #12760
Credits go to @benoit-pierre (Thank you!)
2024-11-23 19:30:48 +01:00
mergen3107
61ffe2abed Disable irrelevant plugins on devices with no frontlight (#12766)
Closes #12764
2024-11-21 19:31:43 +01:00
hius07
24d8baf3ec Notebook file (#12699) 2024-11-21 07:53:22 +02:00
David
9aa327a9de Add faster option to export text selections via QR codes (#12746)
Closes https://github.com/koreader/koreader/issues/11909.
2024-11-20 22:40:08 +01:00
pphszx
bcb7753369 [plugin] Adjust Minimum Font Size in Terminal Emulator (#12752) 2024-11-19 19:18:20 +01:00
fenuks
06696ea913 [plugin] Wallabag: separate option to delete ‘on hold’ articles (#12722)
Before this change, on hold articles were deleted if `Remotely delete
finished articles` was enabled. To make this configurable new option
`Remotely delete on hold articles` has been added.

Fixes #12698.
2024-11-09 23:06:40 +01:00
fenuks
1f89f24e29 [plugin] Wallabag: remove empty file when download fails (#12723)
Wallabag can be really slow to generate epub for large articles. For
example, some Wikipedia articles can take 20+ seconds on app.wallabag.it
instance that I use.
2024-11-09 20:48:21 +01:00