Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-26-2010, 03:04 PM   #16
solomon
Connoisseur
solomon began at the beginning.
 
Posts: 94
Karma: 10
Join Date: May 2010
Device: Win 10
Quote:
Originally Posted by dpippin View Post
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.
Just edit NAVLINK so it has the same type string as LINK does. Then place opds.py in the same directory as your opds.pyo and restart calibre/content server.

Richard
solomon is offline   Reply With Quote
Old 06-29-2010, 04:37 PM   #17
dirtygreek
Member
dirtygreek began at the beginning.
 
Posts: 18
Karma: 46
Join Date: Jun 2010
Device: Nook
A little confused here - so I DON'T need to recompile, just drop a new opds.py into the right place? I thought that was the idea before, but I don't see those files anywhere except in the source code, which I'm having problems compiling.
dirtygreek is offline   Reply With Quote
Advert
Old 06-29-2010, 04:47 PM   #18
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Get opds.py from the source code. Change it as needed, then put it into the right place in calibre's installation directory. If you have opds.pyc there, you can leave it. If you are overwriting opds.py, save a copy first for safety.

What problems are you having with running from source? You shouldn't need to compile anything. Download (easiest is with bzr) and put the source tree somewhere, set the environment variable CALIBRE_DEVELOP_FROM to point at somewhere/src. Run calibre, or perhaps better, calibre-debug -g. If you are successfully running from source, you will see a * next to the version number in the upper right of the window.

The instructions at http://calibre-ebook.com/user_manual/develop.html worked perfectly for me. That said, another user couldn't make running from source work, so there must be some sensitivity to configuration.
chaley is offline   Reply With Quote
Old 06-29-2010, 05:05 PM   #19
dirtygreek
Member
dirtygreek began at the beginning.
 
Posts: 18
Karma: 46
Join Date: Jun 2010
Device: Nook
Well, that's sort of the issue. I'm in Ubuntu, and it's installed to /opt/calibre, but I don't see where that file would go. I haven't tried very hard - doing it remotely during breaks at work - but is that the wrong location? I installed the .deb, so I'm assuming my problem is that I have to run from source.

Last edited by dirtygreek; 06-29-2010 at 05:14 PM.
dirtygreek is offline   Reply With Quote
Old 06-29-2010, 05:09 PM   #20
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,386
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
find /opt/calibre -name opds.pyo
kovidgoyal is offline   Reply With Quote
Advert
Old 06-29-2010, 05:22 PM   #21
dirtygreek
Member
dirtygreek began at the beginning.
 
Posts: 18
Karma: 46
Join Date: Jun 2010
Device: Nook
That's the problem - I don't get any results from that search. That's the first thing I tried
dirtygreek is offline   Reply With Quote
Old 06-29-2010, 05:28 PM   #22
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,386
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Are you sure you installed it in /opt/calibre?

What does

ls /opt/calibre give you?
kovidgoyal is offline   Reply With Quote
Old 06-29-2010, 11:37 PM   #23
dirtygreek
Member
dirtygreek began at the beginning.
 
Posts: 18
Karma: 46
Join Date: Jun 2010
Device: Nook
See below

Last edited by dirtygreek; 06-29-2010 at 11:57 PM.
dirtygreek is offline   Reply With Quote
Old 06-29-2010, 11:56 PM   #24
dirtygreek
Member
dirtygreek began at the beginning.
 
Posts: 18
Karma: 46
Join Date: Jun 2010
Device: Nook
Running from source after making the change worked. Thanks!
dirtygreek is offline   Reply With Quote
Old 07-31-2010, 10:58 AM   #25
jettrue
Enthusiast
jettrue began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Jun 2010
Device: Android
Hi Guys,

I was having this same problem. Couldn't click the links in the wifi /stanza feed in trook, or from the Calibre2opds generated library on my external sd card.

SO, Now I've made the change in opds.py

I'm on a mac, and I put it in the same folder as opds.pyo, which is:

Applications/calibre/Contents/Resources/Python/site-packages/calibre/library/server/

Now the generated stanza feed over wifi from Calibre works, but I can't get the opds library on my external sd card to work.

I deleted my previous library, and regenerated a new one after making the above change. Anything else I can do?
jettrue is offline   Reply With Quote
Old 08-25-2010, 09:27 AM   #26
x86demon
Junior Member
x86demon began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2010
Device: Nook WiFi
Hi. You can download patched version of trook from http://code.google.com/p/trook-fb2/d...name=Trook.apk . This build include calibre OPDS and Stanza patches

It also supports fb2 books format.
Enjoy
x86demon is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 12:34 AM.


MobileRead.com is a privately owned, operated and funded community.