10-10-2008, 10:23 AM | #1 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
Feature Request For Exporting DB Info
Hi Kovid,
Great software you've got here! I'm just setting up my ipod Touch with the Stanza ePub reader and am using Calibre to convert my books to epub format. Stanza has a feature whereby you can access your library online right from the program by simply serving an xml file and your epub books from a webserver and then telling stanza the URL of your online catalog. The syntax of the XML file is pretty straight forward. I was going to whip up a script that would use the info in the Calibre database to generate this XML file and simply mount the Calibre ebook storage folder along with the XML file on my web server so we could access our library from anywhere. After searching this forum I came across the calibredb command along with its --list feature. The only thing its missing for me to generate this XML file is for it to be able to dump the relative path and filename within the Calibre ebook folder of each books book and image files. Is this info accessible by calibredb and if so could these 2 extra fields be added to the --list command? I love it when I stumble across gems of the internet like this. Thanks again for a wonderful piece of software! Cheers, CrazyIvan |
10-10-2008, 01:44 PM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Sure open a ticket, and I'll add the functionality for the next release.
|
Advert | |
|
10-10-2008, 03:00 PM | #3 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
Done. Thanks!
|
10-11-2008, 02:36 PM | #4 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
Hi Kovid,
I just tried the new version of calibredb and see the new field for the books file path ( ) but not the one for the associated cover image file. I've updated the ticket with a comment to reflect this. I've also added another ticket, , to request a CSV option for calibredb's list output. Currently it uses spaces to separate the fields, which can also appear in the field data making it hard to parse out. Adding a --csv option to use commas to separate the fields, including the headings, rather than spaces would greatly simplify parsing. I also threw in a request for an "all" field that would list them all. Cheers, Crazy |
10-11-2008, 02:41 PM | #5 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
Something just dawned on me. Is the cover image file _always_ "cover.jpg"?
Cheers, Crazy |
Advert | |
|
10-11-2008, 05:27 PM | #6 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yeah cover is always named the same.
|
10-13-2008, 11:53 AM | #7 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
As I wait for the CSV option update to calibredb I had a thought . Rather than me running an external script using the new features in calibredb would it be out of line for me to ask for a feature request for an option for Calibre to generate an atom feed XML file for its catalog? This would mean any iPhone/Touch Stanza user could access their Calibre ebook collection on their own device by having the Calibre library on a web server along with this generated XML atom feed. Stanza's catalog atom feed format is pretty straight forward. Here's an example I whipped up that works on my iTouch:
PHP Code:
It ends up looking like the attached ipod Touch screenshot. Crazy |
10-13-2008, 05:00 PM | #8 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
Sorry, I'm new to this forum and have a newbie question. I made a post yesterday that said it needed moderator approval. I'm assuming that was because it had a link to a screenshot of Stanza running on my touch and/or some xml code inline (using the PHP tag). How long do posts generally take to be approved in this forum? I'm wondering if something went wrong and the post is lost in the ether and would like to know whether to repost or not.
Thanks, Crazy |
10-13-2008, 05:03 PM | #9 |
Sir Penguin of Edinburgh
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
I just now saw the post.
|
10-13-2008, 05:20 PM | #10 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Are you saying you want calibre to run a webserver?
|
10-13-2008, 05:56 PM | #11 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
Thanks Nate.
Not personally Kovid, I use a Linux box with Apache to run my home automation stuff so I planned to simply samba mount my Windows Calibre library on my Linux webserver so I can access all of my books in Stanza on my ipod Touch. All that's missing to do this is the XML file describing the location of the epubs and their cover images. Now, that being said, if there's a nice tight web server module that could be slapped into Calibre it might prove useful to some that have wirelessly enabled reading devices. There seems to be quite a few apps out there these days that include their own web front end in order to increase the apps accessibility. For starters though, since there are so manY free web servers available to folks on all the major platforms, just having help generating this atom feed xml file would be a great help. Crazy |
10-13-2008, 06:10 PM | #12 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Generating an XML file from calibredb is pretty trivial, open a ticket for it, but I have a lot of other things in my queue at the moment, and I don't have a iPhone, so if you want this done quickly you're better off doing it externally.
|
10-13-2008, 06:20 PM | #13 |
Groupie
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
|
Sounds good. I'll post the script once I have it working to help out anyone else in the meantime. Thanks again for your help!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Luzme.com: News, Comments and Requests for Help | rwillmer | Deals and Resources (No Self-Promotion or Affiliate Links) | 28 | 01-17-2012 11:55 AM |
Feature request | AprilHare | EPUBReader | 2 | 11-22-2009 05:15 AM |
Feature request | mrmikel | EPUBReader | 4 | 11-20-2009 11:49 AM |
Feature request | AprilHare | Calibre | 4 | 04-22-2009 04:23 AM |
Feature request | AprilHare | Calibre | 0 | 11-22-2008 05:42 AM |