janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
13.05k stars 1.39k forks source link

OPDS read issue with MoonReader Android app #1403

Closed Braincoke closed 4 years ago

Braincoke commented 4 years ago

Bug

Then Android application Moon Reader fails to read the OPDS file served by Calibre-Web.

To reproduce

Steps to reproduce the behavior:

  1. Install Moon Reader
  2. In Moon Reader > OPDS Catalog add a new catalog pointing to http://calibre-ip:port/opds
  3. Fill in your credentials
  4. Restart Moon Reader
  5. Try to access any of the OPDS catalogs (Hot Books for instance)
  6. Get an error

Expected behavior

The android app is capable of reading the OPDS file. Note that I tried with Librera and managed to make it work properly, so it might be an issue coming from MoonReader.

Environment

Log file (from Moon Reader)

Invalidated OPDS content, please contact owner of this OPDS site to verify below error: At line 44, column 6: unbound prefix

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/terms/">
  <id>urn:uuid:2853dacf-ed79-42f5-8e8a-a7bb3d1ae6a2</id>
  <updated>2020-05-18T09:26:11+00:00</updated>
  <link rel="self"
        href="/opds/series/6?"
        type="application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"/>
  <link rel="start"
        href="/opds"
        type="application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"/>
  <link rel="up"
        href="/opds"
        type="application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"/>

    <link rel="search"
      href="/opds/osd"
      type="application/opensearchdescription+xml"/>
  <!--link title="Search" type="application/atom+xml" href="/opds/search?query={searchTerms}" rel="search"/-->
  <title>Calibre-Web</title>
  <author>
    <name>Calibre-Web</name>
    <uri>https://github.com/janeczku/calibre-web</uri>
  </author>

  <entry>
    <title>Head First Design Patterns</title>
    <id>urn:uuid:3eca4440-e95b-459a-ace9-879da0421b9f</id>
    <updated>2020-05-18T07:19:03+00:00</updated>

      <author>
        <name>Eric Freeman</name>
      </author>

      <publisher>
        <name>O&#39;Reilly Media, Inc.</name>
      </publisher>

      <dcterms:language>eng</dcterms:language>

    <category scheme="http://www.bisg.org/standards/bisac_subject/index.html"
              term="Programming"
              label="Programming"/>

    <summary>Using research in neurobiology, cognitive science and learning theory, this text loads patterns into your brain in a way that lets you put them to work immediately, makes you better at solving software design problems, and improves your ability to speak the language of patterns with others on your team.</summary>

    <link type="image/jpeg" href="/opds/cover/41" rel="http://opds-spec.org/image"/>
    <link type="image/jpeg" href="/opds/cover/41" rel="http://opds-spec.org/image/thumbnail"/>

    <link rel="http://opds-spec.org/acquisition" href="/opds/download/41/pdf/"
          length="28022821" mtime="2020-05-18T07:19:03+00:00" type="application/pdf"/>

  </entry>

</feed>
OzzieIsaacs commented 4 years ago

It's merged to the master branch, and should now work