Mobileread
COPS : Calibre OPDS PHP Server
#1  vlad59 03-02-2012, 04:26 PM
Hi,

I know that Calibre include a powerful server which can provide HTML and OPDS. But my goal was to host my OPDS server on a small server with limited RAM and CPU (it could also be a VPS). That's why I coded COPS.

It's main advantages are :
It's still in early stages but it works enough for me. In any cases I'm open to suggestions to enhance it.

You can download it here : http://blog.slucas.fr/en/oss/calibre-opds-php-server
Reply 

#2  vlad59 03-03-2012, 04:37 PM
For those who would like to test it, i put up a demo catalog (with some public domain books) here :

http://cops-demo.slucas.fr/feed.php

Please tell if it works or not especially if you're not using FBReader or Aldiko (I already know these two are working fine).

You have to use an OPDS client to check the demo (a normal browser or feed reader won't do). A list of OPDS client is here : http://wiki.mobileread.com/wiki/OPDS
Reply 

#3  bobkoure 03-09-2012, 02:31 PM
I just tried it with Moon+ Pro. Browsing works fine.
Reply 

#4  vlad59 03-10-2012, 05:58 AM
Quote bobkoure
I just tried it with Moon+ Pro. Browsing works fine.
Thanks a lot for the report.

I would like some report of stanza / megareader users as I remember there was some compatibility problem some time ago. I've seen some visit in the logs from those OPDS client but I can't be sure if it was working or not.
Reply 

#5  ilovejedd 03-10-2012, 12:54 PM
Quote vlad59
Thanks a lot for the report.

I would like some report of stanza / megareader users as I remember there was some compatibility problem some time ago. I've seen some visit in the logs from those OPDS client but I can't be sure if it was working or not.
Stanza appears to be working fine.
Reply 

#6  CBebop 04-02-2012, 03:36 PM
Is there anything major that holds it back from supporting mobi formatted books?
Reply 

#7  euterpe 04-02-2012, 04:08 PM
hi, im making a catalog as we speak and searched opds and came up with this thread.

I'm using my Dropbox account -- is this script an alternative to dropbox?

Thanks looks cool
Euterpe

Quote vlad59
Hi,

I know that Calibre include a powerful server which can provide HTML and OPDS. But my goal was to host my OPDS server on a small server with limited RAM and CPU (it could also be a VPS). That's why I coded COPS.

It's main advantages are :
It's still in early stages but it works enough for me. In any cases I'm open to suggestions to enhance it.

You can download it here : http://blog.slucas.fr/en/oss/calibre-opds-php-server
Reply 

#8  vlad59 04-03-2012, 03:33 AM
@CBebop

No nothing major hold back mobi support (only my laziness). I'll work on it this weekend.

@euterpe

From my point of view it's not an alternative to Dropbox as I use it with dropbox.

I have a laptop with Calibre and my Calibre library is located in my dropbox folder.

I have a VPS with Dropbox and COPS installed.

So each time I make a modification on my laptop's calibre library it's automatically synchronized onto my VPS (thanks to Dropbox) and my OPDS catalog is always up to date without having to do any manual stuff (as it reads directly from the Calibre database).

I hope it's clearer.
Reply 

#9  CBebop 04-04-2012, 10:32 AM
Quote vlad59
@CBebop

No nothing major hold back mobi support (only my laziness). I'll work on it this weekend.
That would be awesome. I was honestly going to try to hack it in for myself if it wasn't much trouble (I have not been able to look at the code just yet). While we are on the subject of the code itself, what portions are specific to nginx? I am a big user of lighttpd and if it were functions I would be able to replace to support lighttpd that would keep me from having to rebuild a VSP to use this.
Reply 

#10  vlad59 04-05-2012, 03:48 AM
The only nginx specific code is the use of the header X-Accel-Redirect to handle the download of files outside your web directory.

I believe that lighttpd has almost the same feature with x-sendfile (I'll let you google it if needed) so it shouldn't be hard to add (3-5 line change) assuming you're willing to test.
Reply 

  Next »  Last »  (1/175)
Today's Posts | Search this Thread | Login | Register