View Single Post
Old 12-07-2016, 03:24 PM   #9
Trel
Connoisseur
Trel began at the beginning.
 
Posts: 66
Karma: 10
Join Date: Jan 2010
Device: Onyx Boox Poke 3
Quote:
Originally Posted by itimpi View Post
If I understand what you are trying to achieve then you could try using Calibre2opds to generate the this One of the options in Calibre2opds is to NOT include download links to any eBook files, and another is to include cover images together with the generated catalog web pages (rather than referring back to the images in the Calibre library).

How closely the results will match your needs I am not sure but it could be worth checking out.
Again, the PHP script I want is pulling the path information from the database file itself.

In order to use that to any effect, I need to actually ensure that path works. Exporting does not do that.

For example, the path in the database for a book is
Code:
Stephen King/The Gunslinger (304)
Which means if I would like to use that field to find cover.jpg, then the path it will be in needs to be
Code:
Stephen King/The Gunslinger (304)/cover.jpg
If I export it, it renames, reorders and strips the number.
Which is to say, they no longer match.

The output I've asked for is directories containing cover.jpg matching the structure Calibre is using for its database.

Calibre2odps doesn't even come close to what I want, nor why.
A static HTML list is useless. I'm generating pages by querying the database directly which allows me to sort, search, limit, paginate, etc.

I even posted a live example of an early version. That's getting generated from an actual metadata.db file. Which is my intended setup.

EDIT: to clarify
http://crysic.com/cadb/
and
http://crysic.com/cadb/?alt

Are live examples of what kind of thing I intend to do.

Last edited by Trel; 12-07-2016 at 03:33 PM.
Trel is offline   Reply With Quote