Libreture Roadmap

Request a Feature Report a bug

< Back

OPDS issue while using Foliate

Bug - Under Review
Added 11 August 2025 (Updated: 11 May 2026)

OPDS feed catalog entries fail to be read by Foliate, an ebook reader for Linux.

Reported by Mage:

This seems to be because each book's catalogue entry contains a link element for the book's page on the Libreture site with the attributes: type="application/atom+xml;type=entry;profile=opds-catalog;" along with rel="alternate".

The link element having these attributes causes Foliate to attempt to read the book's Libreture page as the Complete Catalog Entry Resource for the book, and as the page is a full website page and not an XML file, it fails to parse it and causes an error.

According to the OPDS specification, Foliates OPDS parser is acting correctly in doing this, as partial catalog entries that contain "alternate" link relations to link to the entries Complete Catalog Entry are something that is detailed in all 3 published versions of the OPDS specification.

https://opds-spec.org/specs/opds-catalog-1-1-20110627/#Partial_and_Complete_Catalog_Entries

This doesn't seem to be an issue with other OPDS readers I use like the one in KOReader, as they seem to support reading "alternate" link relations to access the entries' full details.

A simple solution could be to replace the link's type attribute with "text/html" along with removing the attribute "profile=opds-catalog" so it isn't interpreted as the Complete Catalog Entry Resource for the books catalog entry. However I don't know much about OPDS feeds so this might be wrong.

Also note that my entire viewpoint of what the problem is could also be wrong, but I have found through removing the code in Foliates opds parser that attempts to find and store the link to each entries complete catalog entry, it is able to successfully display the entries details along with the download link.