05-04-2012, 02:21 AM | #16 |
Enthusiast
Posts: 39
Karma: 10
Join Date: May 2012
Device: none
|
Web browsable?
I'm interested in this script for many of the same reasons that you created it, but there is one feature I would like to achieve... Is it possible to also make a web browsable catalog?
Calibre2opds achieves this by generating HTML files for the website and XML files for the OPDS catalog. I like the way that the two match and would very much like to use a regular web browser and my opds capable ereader for navigating my collection. I would appreciate any information you might have that could help me out with this. |
05-04-2012, 03:51 AM | #17 |
Member
Posts: 15
Karma: 12
Join Date: Apr 2012
Device: ipad
|
@blackmailer : php si a bit confusing with sqlite.
Thé calibre database si sqlite 3 version. I ve succesfully installés cops in an Apache environnement maybe it's easier to do in that way. For the last post, opds si à better protocol to browse à catalog, in i remembre calibre 2opds build static html ADN you néed to rebuild them. In you ré reader si opds compatible keep cops |
Advert | |
|
05-06-2012, 08:50 PM | #18 |
Enthusiast
Posts: 39
Karma: 10
Join Date: May 2012
Device: none
|
Fatal Error
I'm getting this error message
Code:
Fatal error: Call to a member function fetchColumn() on a non-object in /var/www/author.php on line 33 I'm running Apache2. |
05-06-2012, 09:13 PM | #19 |
Enthusiast
Posts: 39
Karma: 10
Join Date: May 2012
Device: none
|
Doh! I fixed my problem and it was pretty stupid...
In the config_local.php file I had the variable: PHP Code:
PHP Code:
|
05-07-2012, 08:47 AM | #20 |
Addict
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
@b1ackmai1er
I agree with Gaspine thought, you have a to use a Sqlite3 driver to open Calibre's database. What OS are you using ? from the directory you typed it doesn't appear to be any variant of Debian or Arch. Have you restarted your php fastcgi after installing sqlite package ? @micster Sorry for the lost hours I'll add a warning in next release (should be later today). About your other question about a web browsable catalog, I'm currently coding it, I'll post a link to my work in progress later. |
Advert | |
|
05-07-2012, 09:29 AM | #21 |
Addict
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
COPS 0.0.3 is out with the following changes (First post to download) :
* Fixed many things blocking opensearch from working * There was a bug introduced in 0.0.2 * The URL can't be relative for Mantano reader, so I added a configuration item. * I continued the refactoring to bring HTML to COPS * Thumbnails have bigger size (I'll add a configuration item later) * Added HTTP headers to help caching image and thumbnail to the browser Thanks to gaspine for testing it with Apache2 and fixing some bugs. The download link is in the first post. I have also started an HTML catalog with the following constraint : it has to be usable on my Kobo eReader Touch / my Phone / my Tablet / any normal browser. So it won't probably have all the bells and whistles you'll expect : it will be simple ! Warning : that's a work in progress, but you can see for yourself here : http://cops-demo.slucas.fr/kobo.php The TODO list is quite huge but it's a start :
I'll work on that later. Happy testing. |
05-08-2012, 03:12 AM | #22 | ||
Enthusiast
Posts: 39
Karma: 10
Join Date: May 2012
Device: none
|
Hey Vlad59,
Thanks for the update! I have been currently trying to run your script in conjunction with THIS OTHER ONE written by Chaley. His only does the website without an opds catalog, while yours had the catalog but nothing for browsers.... with your powers combined! I'm happy you are working on a solution for browsers. The other script I mentioned had similar requirements to yours with the addition of the Smarty Template Engine. It also supports search which is a big plus to me. I was able to install both scripts, but yours has refused to cooperate with me! I use the MegaReader app for iOS devices for navigating my opds catalog. When I use your demo feed, everything works fine. But when I use your version 0.2 script on my catalog I get two main errors... When I try and perform a search I get this message: Quote:
Quote:
Code:
Fatal error: Undefined class constant 'PAGE_OPENSEARCH_QUERY' in /var/www/OPDS_renderer.php on line 54 The first thing I will try is to upgrade to version 0.3 and see if my problems magically go away. Wish me luck! |
||
05-08-2012, 03:48 AM | #23 |
Addict
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
Hi mcister,
Don't try search with 0.0.2 it's totally screwed. I totally forgot to test the search before releasing it. It should work correctly with 0.0.3 (hopefully). Edit : I also use Chaley script on the same server so it shouldn't be the cause of your problem. |
05-09-2012, 12:59 AM | #24 |
Enthusiast
Posts: 39
Karma: 10
Join Date: May 2012
Device: none
|
WooWhoo! Success! The version 0.3 fixed my search which started working right away. My book downloads however, still did not work. But I have discovered why and once again it was my own stupid fault...
The section that was causing my problems was the Calibre Directory at the top: PHP Code:
PHP Code:
PHP Code:
Oh, by the way this is running on Apache2 and I use MegaReader as my e-reader and everything is working. |
05-10-2012, 07:55 AM | #25 |
Junior Member
Posts: 2
Karma: 10
Join Date: May 2012
Device: Xoom
|
@vlad59
@gaspine Thanks guys, Yes the PHP5 package that I use only has the sqlite 2.8 version. I am using Tinycore Linux. I have requested that the package be updated but I don't hold out much hope of it being updated. I may try to find a version 3 php sqlite pdo and see if I can substitute the newer file. Thanks Phil. |
05-12-2012, 02:54 AM | #26 |
Addict
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
@b1ackmai1er
Hope you'll find a newer package. @mcister Sorry again for wasting your time with 0.0.2 Happy to hear it's working correctly. That makes 3 people correctly using it. |
05-13-2012, 05:12 PM | #27 |
Enthusiast
Posts: 39
Karma: 10
Join Date: May 2012
Device: none
|
Navigational Images?
Hey vlad59,
Everything has been working out pretty good but I noticed that your opds catalog does not display images alongside the navigational links. This is a feature that was available in my old catalog, Calibre2opds. I'm trying to decipher how this was achieved and I'm also trying to figure out how your script constructs the opds catalog. Is this something you could shine some light on? Any plans to add icons into the catalog? Thanks! |
05-16-2012, 10:30 AM | #28 |
Addict
Posts: 369
Karma: 37869
Join Date: Sep 2011
Device: Kobo eReader Touch, Kobo Aura HD
|
Hi,
I'm a minimalist kind of guy So I don't add things that seems unnecessary to me. Anyway it's fairly easy to add, I'll add that in the next release (sunday if everything goes as planned). I'll also add tags. |
05-16-2012, 06:18 PM | #29 |
Enthusiast
Posts: 39
Karma: 10
Join Date: May 2012
Device: none
|
Woot! I really appreciate the work you have done. Adding icons was the last thing on my list
Now that I'm thinking about it... is there a way to add custom navigational sections? Like what if I wanted a category for all of my comics? I think I could achieve something close to that with a custom column in Calibre, but I'm not sure how that might work when creating an OPDS. I think I read about someone achieving something like this by creating multiple Calibre databases (one for comics, magazines, books) and then creating separate OPDS catalogs for each. It would be nice to just have the single OPDS catalog and be able to add whatever sections you want though. This might be too ambitious and I'm really just brainstorming to try and see how I could accomplish this. Anyways, thanks for all the great work you have done already! -Mic |
05-19-2012, 10:05 AM | #30 |
Enthusiast
Posts: 49
Karma: 500000
Join Date: Dec 2011
Device: Kobo Libra 2
|
Wow! - it has taken most of the day but I finally have this up and running on my NAS (using apache). Now I can turn off the old laptop I have had running to serve my library.
Jill |
Tags |
calibre opds, dns, kobo aura, synology |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre OPDS server with windows apps? | nickdma | Related Tools | 10 | 03-03-2024 03:53 PM |
[Old Thread] Android FBreader and Calibre OPDS server question | kalex | Calibre | 5 | 12-24-2015 11:16 PM |
PHP+Apache web server for calibre ... | chaley | Related Tools | 254 | 04-28-2014 09:18 PM |
External OPDS catalogue in Calibre | bolton | Calibre | 1 | 09-05-2012 07:14 AM |
Calibre Command Line usage with PHP | artoros | Related Tools | 13 | 07-01-2010 10:57 AM |