kiha-la / ebookdroid

Automatically exported from code.google.com/p/ebookdroid
0 stars 0 forks source link

Calbre 0.8.65(?) opds doesn't work #292

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using calibre to serve up opds. EbookDroid gets the first page but 
incorrectly parses it and so cannot load subsequent pages. Works in FBReader.

What steps will reproduce the problem?
1. Calibre 0.8.X serving opds on local network
2. Connect with EbookDroid
3. Try to browse past the first page.

What is the expected output?
See above

What do you see instead?
404 error

What version of the product are you using?
v1.5.1

On what operating system?
Android. Server is Debian

What device are you using?
Galaxy Tab 8.9

Please provide any additional information below.

Issue is discussed here
http://www.mobileread.com/forums/archive/index.php/t-87468.html

"By Newest" link, when "edit" is selected shows a link of 
"calibre-navcatalog:5ca994e1f74679d1ff943309d26c7dea85e822c9" rather than the 
url. Indeed the xml returns the following:

 <entry>
    <title>By Newest</title>
    <id>calibre-navcatalog:5ca994e1f74679d1ff943309d26c7dea85e822c9</id>
    <updated>2012-08-22T14:23:47+00:00</updated>
    <content type="text">Books sorted by Date</content>
    <link href="/opds/navcatalog/4f6e6577657374" type="application/atom+xml;type=feed;profile=opds-catalog"/>
  </entry>

Plough works fine and the equivalent xml returns

  <entry>
    <title>Plough Books in English</title>
    <link rel="subsection" 
          href="/ploughenglish_opds.xml"
          type="application/atom+xml;profile=opds-catalog"/>
          <link type="text/html" href="http://www.plough.com/ploughenglish_opds.xml" rel="alternate"/>
    <updated>2011-05-10T10:01:01Z</updated>
    <id>http://www.plough.com/ploughenglish_opds.xml</id>
    <dcterms:language>en</dcterms:language>
    <content type="text">Ebooks in .pdf, .epub, and .prc formats in English</content>
  </entry>

I assume the "id" tag is being used when base url + "link href" should be used. 
I also assume calibre is correct, insofar as it matches the examples on the 
opds standard
http://opds-spec.org/specs/opds-catalog-1-1-20110627/#Entry_Examples

Original issue reported on code.google.com by chrisde...@gmail.com on 26 Aug 2012 at 8:48

GoogleCodeExporter commented 9 years ago
Do you use Caliber on port different from 80 one?
Seems that we don't add original port to URLs without host:port prefix like 
that:
/opds/navcatalog/4f6e6577657374

Original comment by Alexander.V.Kasatkin@gmail.com on 27 Aug 2012 at 9:03

GoogleCodeExporter commented 9 years ago
Yes I do. 

Original comment by chrisde...@gmail.com on 27 Aug 2012 at 9:06

GoogleCodeExporter commented 9 years ago
To elaborate I use multiple ports for different libraries. :8081, :8082, etc.
The fact that I was seeing "calibre-navcatalog:...." as the link was a red 
herring then?

Original comment by chrisde...@gmail.com on 27 Aug 2012 at 9:08

GoogleCodeExporter commented 9 years ago
Try this:

Original comment by Alexander.V.Kasatkin@gmail.com on 27 Aug 2012 at 9:47

Attachments:

GoogleCodeExporter commented 9 years ago
Sweet! Works a treat. Thank you very much for an amazingly fast fix! 

Original comment by chrisde...@gmail.com on 27 Aug 2012 at 9:55

GoogleCodeExporter commented 9 years ago

Original comment by Alexander.V.Kasatkin@gmail.com on 27 Aug 2012 at 10:30

GoogleCodeExporter commented 9 years ago
Issue 299 has been merged into this issue.

Original comment by Alexander.V.Kasatkin@gmail.com on 1 Sep 2012 at 7:43

GoogleCodeExporter commented 9 years ago

Original comment by Alexander.V.Kasatkin@gmail.com on 2 Sep 2012 at 12:38

GoogleCodeExporter commented 9 years ago
Issue 299 has been merged into this issue.

Original comment by Alexander.V.Kasatkin@gmail.com on 2 Sep 2012 at 12:38

GoogleCodeExporter commented 9 years ago
Issue 304 has been merged into this issue.

Original comment by Alexander.V.Kasatkin@gmail.com on 5 Sep 2012 at 11:49