06-11-2010, 11:30 AM | #1 |
Connoisseur
Posts: 94
Karma: 10
Join Date: May 2010
Device: Win 10
|
Calibre 0.7.x not working with Trook
Is anyone able to use Trook with Calibre 0.7.x? I'm seeing problems with Trook not reading Calibre 0.7.x (I tried 0.7.1 and 0.7.2) catalogs properly. I first thought it was unique to the /opds page but now I realize the same problem exists with the /stanza page.
I get the RSS icon for my top-level catalog, and the listing of "by Author" "by Title" "by Series" etc but there's no icon for those sub-feeds. Stanza still works fine, so I suspect some small change which Trook doesn't like I've opened a Trook ticket but would like to find anyone else with a soft-rooted Nook who can confirm the problem exists for them too... TIA! Richard [Edited 2010-06-12 with additional information and Calibre 0.7.2 results] Last edited by solomon; 06-12-2010 at 04:48 PM. |
06-12-2010, 04:49 PM | #2 |
Connoisseur
Posts: 94
Karma: 10
Join Date: May 2010
Device: Win 10
|
Whoops - I edited the text but that didn't bump this up, so I'm manually bumping for new 0.7.2 Calibre results.
|
Advert | |
|
06-14-2010, 03:26 PM | #3 |
Connoisseur
Posts: 94
Karma: 10
Join Date: May 2010
Device: Win 10
|
After some digging around, I *believe* the problem lies in the fact that Caliber 0.7.x includes more complex links:
0.6.5x returned: <link type="application/atom+xml" href="/stanza/?sortby=byauthor"/> where 0.7.x returns: <link href="/stanza/navcatalog/4e617574686f7273" type="application/atom+xml;type=feed;profile=opds-catalog"/> When I look at Trook's AtomFeedParser.java it appears the function isStanzaSearchLink() checks the link type for *EQUALITY* with "application/atom+xml" which was true in Stanza 0.6.5x but not in 0.7.x? It also appears that Stanza reverses the order of the href and type tokens in the link statement, so perhaps Trook only accepts them in that order? Is there any chance of getting an option for the "simpler" 0.6.xx version xml until Trook can be updated to parse smarter? TIA, Richard |
06-14-2010, 04:02 PM | #4 |
creator of calibre
Posts: 43,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No those links are compliant with the OPDS standard, Trook really should be updated to support them.
|
06-14-2010, 04:09 PM | #5 | |
Connoisseur
Posts: 94
Karma: 10
Join Date: May 2010
Device: Win 10
|
Quote:
If I can figure out how to run Calibre from source, and where the code for this is, I'll perhaps try tweaking a local copy until I can make Trook happy - and see exactly what is making it mad. I don't know how to rebuild Trook from source but I've got a ticket open to confirm the problem and hopefully get a fix. I've not even seen that ticket get accepted yet, so I'm not sure where the author stands on the issue. I presume he'll be pretty interested in a fix, I'm just trying to get more books on my Nook before my trip next week! Richard |
|
Advert | |
|
06-14-2010, 04:22 PM | #6 |
creator of calibre
Posts: 43,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Running calibre from source is trivial, instructions in the user manual. The relevant code in calibre/library/server/opds.py
|
06-14-2010, 04:23 PM | #7 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
06-14-2010, 04:31 PM | #8 | |
Connoisseur
Posts: 94
Karma: 10
Join Date: May 2010
Device: Win 10
|
Quote:
Richard |
|
06-14-2010, 05:07 PM | #9 |
creator of calibre
Posts: 43,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The source is available as a tarball as well from google code
|
06-14-2010, 05:15 PM | #10 |
Connoisseur
Posts: 94
Karma: 10
Join Date: May 2010
Device: Win 10
|
|
06-14-2010, 05:30 PM | #11 |
Connoisseur
Posts: 94
Karma: 10
Join Date: May 2010
Device: Win 10
|
|
06-14-2010, 10:53 PM | #12 | |
Connoisseur
Posts: 94
Karma: 10
Join Date: May 2010
Device: Win 10
|
Quote:
Is there a way to compile my hacked opds.py into opds.pyo so I can copy it over to my headless file server and not have to convert that to running source mode also? I'm updating Trook Issue 35 with the problem on Trook's side... but I don't know how quickly/if Trook will be updated. Certainly other Nook users should weigh in there if they're concerned. Richard |
|
06-15-2010, 08:51 AM | #13 |
creator of calibre
Posts: 43,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
you dont need to overwrite the pyo file just place the py file next to it. It will be used in preference.
|
06-15-2010, 09:49 AM | #14 |
Connoisseur
Posts: 94
Karma: 10
Join Date: May 2010
Device: Win 10
|
|
06-26-2010, 01:22 PM | #15 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jun 2010
Device: Nook
|
Solomon,
I am currently having the same problem. I just went back to to version 0.6.55 of Calibre. I've been looking at the opds.py file but can't figure out what you changed. Can you tell me what you changed in the opds.py file and whether or not you had to recompile the source to apply the changes. In the meantime I hope trook will create an update for the fix but it looks like that could be awhile if ever. Your response is greatly appreciated, thanks. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Classic Trook Catalog and Calibre | jhempel24 | Nook Developer's Corner | 2 | 09-06-2010 11:56 PM |
Classic trook and a opds catalog of calibre not allowing dl | Schmots | Nook Developer's Corner | 4 | 09-01-2010 08:31 AM |
Classic Trook-browsing Calibre; HOW? | maurizio9991 | Nook Developer's Corner | 3 | 08-27-2010 01:22 AM |
Classic Trook rev53 is not working properly with Calibre | mos | Nook Developer's Corner | 12 | 03-26-2010 08:14 AM |
Classic How to add calibre to Trook? | mos | Nook Developer's Corner | 8 | 03-06-2010 07:23 AM |