Commit Graph

17 Commits

Author SHA1 Message Date
Frans de Jonge
eb00488fa6 [plugin] OPDS: ignore query string in file extension workaround (#14304)
Closes <https://github.com/koreader/koreader/issues/14300>.
2025-09-11 21:46:40 +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
de676292f6 tests: drop nocov tags 2024-11-25 22:55:57 +01:00
Benoit Pierre
36154f4747 tests/opds: fix no longer valid feedbooks.com URLs (#12185) 2024-07-19 18:58:32 +02:00
Benoit Pierre
8f6fae81fa tests: tag tests relying on a working internet access (#10939)
So they can easily be filtered-out when offline.
2023-09-24 18:18:03 +02:00
hius07
c36a2929ac OPDSbrowser refactoring (#9703)
Refactoring:
-removed duplicated code
-removed passing of username/password through all the modules
-logical order of the methods
-some optimizing and drying
-comments

New features:
-subcatalog link can be saved to the list of servers (eg: direct link to the catalog of books by an author)
-more book information can be fetched and shown (Book information)
-fixed access to the Standard library (by @KGKopli, closes #9372)
2022-10-29 19:06:42 +02:00
Dylan Garrett
26ec5bafe3 [plugin] Display OPDS download titles if available (#8441)
I've found that some OPDS catalogs have multiple downloads of the same filetype, but optimized or formatted in different ways. The Title of the download is much more descriptive in this case, so I thought it would be better to display the title if available.

The OPDS catalog at https://standardebooks.org/opds is a good example. Note how entries in https://standardebooks.org/opds/new-releases have three different epub downloads, titled "Recommended compatible epub", "Advanced epub", and "Kobo Kepub epub".
2021-11-14 07:52:53 +01:00
NiLuJe
7ed97c8714 Tests: Make the timeouts more lenient during OPDS tests
Helps prevent spurious failures when stuff is slow.
2021-04-30 06:02:09 +02:00
Steady Quad
8fb6ae715b Update tests in opds_spec for Gutenberg http → https (#7489)
See #7439
2021-04-02 18:50:26 +02:00
NiLuJe
0674e6060a Screensaver: Fix a fallback snafu (#7397)
* Screensaver: Don't assume a missing show_message setting means that type
setting is, too.
2021-03-08 06:30:14 +01:00
NiLuJe
48b0f2242c OPDSBrowser: Unbreak test (#7393) 2021-03-07 00:05:41 +01:00
Alex Vanderpot
ac26ccdc58 OPDS: Parse Open Search Definition for feeds that support it (#7380) 2021-03-06 19:29:15 +01:00
Martín Fernández
5c9e649804 move opds to plugin (#7237) 2021-02-06 19:09:31 +01:00
Qingping Hou
0b9c9d6ddb test(chore): remove side effects 2017-01-30 05:53:44 -08:00
Qingping Hou
581039aed5 opds(fix): unescape name and value 2016-12-29 00:02:22 -08:00
chrox
d6c4465c47 fix coverage test fails on OPDS browser module
for some reason luxl.lua has problem when being set hook for luacov
2014-12-01 14:46:17 +08:00
Frans de Jonge
47d7a48555 OPDS: refactored unit test and fixed a minor bug with undefined image_rel 2014-11-30 21:44:47 +01:00