foobnix / LibreraReader

Book Reader for Android
http://librera.mobi
Other
2.7k stars 296 forks source link

Support for OpenSearch Description Files in OPDS Book Sources #1293

Open jerryyang-git opened 1 week ago

jerryyang-git commented 1 week ago

Description

Currently, LibreraReader only supports Atom link templates (e.g., <link type="application/atom+xml" rel="search" title="Search" href="/opds/search/{searchTerms}"/>), and does not support OpenSearch description files (e.g., <link rel="search" type="application/opensearchdescription+xml" title="Project Gutenberg Catalog Search" href="https://www.gutenberg.org/catalog/osd-books.xml"/>).

Expected Behavior

I would like LibreraReader to support OpenSearch description files so that users can search a wider range of OPDS book sources.

Steps to Reproduce

  1. Add an OPDS book source that only supports OpenSearch description files, such as https://m.gutenberg.org/ebooks.opds/?format=opds.
  2. Unable to recognize the OpenSearch Description File method, unable to search for the

Environment Information

BTW, I've been using Librera for a while now to read my local library, and I'm very grateful to have such great software!