![]() |
#1 |
calibre2opds guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 533
Karma: 8792
Join Date: Aug 2005
Location: Metz, France
Device: iPhone, iPad, PRS-650
|
![]()
NEW The tool is now called calibre2opds and it has its own website, and thread here on MobileRead...
NEW I programmed a tool based on Calibre2Web that can be used on all platforms (Windows, Macs and Unixes) to generate the Stanza catalogs. It is hosted on Sourceforge and I intend on updating it often, so please join the project and make requests ! ------------------------------------------- I'm pretty sure a lot of people here know Dropbox, the (free at first) file sharing and synchronization service... I use it to sync the files on my two Macs, and my work PC ; it's a very easy to use and efficient service. Recently, I began syncing my Calibre library, so the books I edit/add/remove on either machine would be available on all the others ; Calibre is a multi-platform marvel, so this syncing makes a lot of sense. And I thought of something : if I generate the stanza.xml file from the Calibre database (using the calibre-db command), maybe it could be automatically accessible from my iPhone, now that the whole Calibre library is synchronized and available on my Dropbox account ? Guess what ? It works ! Unfortunately, it's still a manual process, but I'm pretty sure it could be possible for our generous Kovid to change it into something automatic... Here are the steps needed to make this happen :
That's all ! Of course, if the stanza.xml file could be generated automatically with every modification of the database, it would be even better, but even now it's very convenient... Thanks again Kovid for Calibre, the Lexycle people for Stanza and Dropbox for being free... PS : if I made a mistake in my explanation, or if something was not clear enough, ask questions and I'll be happy to try and explain better... Last edited by dpierron; 03-09-2010 at 11:49 AM. Reason: Added calibredbxtract |
![]() |
![]() |
![]() |
#2 |
.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,408
Karma: 5647231
Join Date: Oct 2008
Device: never enough
|
So...you are accessing your entire Calibre library on Stanza iPhone from anywhere? Over 3G? That...is pretty awesome.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
calibre2opds guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 533
Karma: 8792
Join Date: Aug 2005
Location: Metz, France
Device: iPhone, iPad, PRS-650
|
Over Wifi, 3G, even over Edge : the file sizes are usually small enough to make it possible even with a very low bandwidth.
|
![]() |
![]() |
![]() |
#4 |
Wearer of Pants
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,050
Karma: 7634
Join Date: Jan 2008
Location: Norman, OK
Device: Amazon Kindle DX / iPhone
|
That's bloody brilliant
|
![]() |
![]() |
![]() |
#5 |
calibre2opds guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 533
Karma: 8792
Join Date: Aug 2005
Location: Metz, France
Device: iPhone, iPad, PRS-650
|
Thanks for the bloody compliment
![]() Unfortunately, Kovid seems to disagree with my opinion that it would be better if Calibre itself triggered the generation of the stanza.xml catalog ; his point of view is that it would be easy to do with a cron job, and I'm trying to demonstrate that not everyone (nor every operating system) is capable of managing cron jobs... But I'm afraid it's a lost cause ![]() Anyhow, even if it has to be done manually, it's still great and it's still thanks to Kovid and his amazing work that we're able to do it ! |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
calibre2opds guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 533
Karma: 8792
Join Date: Aug 2005
Location: Metz, France
Device: iPhone, iPad, PRS-650
|
And guess what is already corrected in today's Calibre release (0.6.24) ?
calibredb list: Do not URL encode the href fields for the stanza output format Thanks Kovid, that's one small step for you, and a giant's leap for us, Dropbox users ![]() |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,686
Karma: 874275
Join Date: Nov 2008
Location: Virginia Beach, VA
Device: Kindle DX
|
I finally got it working
![]() ![]() |
![]() |
![]() |
![]() |
#8 |
calibre2opds guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 533
Karma: 8792
Join Date: Aug 2005
Location: Metz, France
Device: iPhone, iPad, PRS-650
|
Yes, I agree ! I'm having the same feeling.
Let's not upgrade the calibredb tool to version 0.6.24, because the change Kovid made for Stanza catalog export is causing a problem : the spaces are not converted into %20 characters, and therefore the stanza.xml file is not readable by Stanza. Better keep 0.6.23 until it is fixed, even if this means that we must manually convert '%28' and '%29' into '(' and ')' characters ... |
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Imust admit I did not understand why Kovid made that change. If a URL is not correctly escaped it does not get handled correctly by Stanza. I guess there must have been a reason otherwise he would not have done it?
Has a ticket been raised to point out this is causing problems? |
![]() |
![]() |
![]() |
#10 |
calibre2opds guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 533
Karma: 8792
Join Date: Aug 2005
Location: Metz, France
Device: iPhone, iPad, PRS-650
|
In fact it's all my fault : I asked Kovid (in this ticket) to change the behavior of calibredb so that we would not have to manually convert %28 into '(' and %29 into ')'
And then the change he made disabled urlencoding of the links in the stanza.xml file, which is overkill (but I should have said it beforehand). He couldn't test it, because he would need an iPhone with Stanza... |
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,686
Karma: 874275
Join Date: Nov 2008
Location: Virginia Beach, VA
Device: Kindle DX
|
I have been using .6.24 since it was released and it works well enough for me for the time being... especially since I am in the middle of a book on my Kindle
![]() The best thing is that: 1) I now have the ability to have remote access to all my non Amazon books. 2) I have a central location for my eBooks It would have been even better if I could have been able to access Dropbox from my Kindle the same way as Stanza on the iPhone. |
![]() |
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,686
Karma: 874275
Join Date: Nov 2008
Location: Virginia Beach, VA
Device: Kindle DX
|
You know... you are right...if there was a way to get Calibre to automatically generate the stanza.xml automatically when changes are made it would be awesome
|
![]() |
![]() |
![]() |
#13 |
calibre2opds guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 533
Karma: 8792
Join Date: Aug 2005
Location: Metz, France
Device: iPhone, iPad, PRS-650
|
|
![]() |
![]() |
![]() |
#14 | |
Quilt Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 472
Karma: 91775
Join Date: Aug 2007
Location: Lancaster, PA
Device: Kindle
|
Quote:
It's not Dropbox, since you have to keep your own computer running, but it works great. I do use Dropbox, too - I keep my library on my laptop synced (via Dropbox) to the iMac that we use as our server. |
|
![]() |
![]() |
![]() |
#15 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834
Karma: 102419
Join Date: Sep 2007
Location: Vienna, Austria
Device: iPhone
|
What are "cron jobs"?
Hope that helps your cause! |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use Dropbox with Calibre | BAD18 | Related Tools | 5 | 11-09-2011 08:52 AM |
Apple Tries To Acquire Dropbox for $800 Million, Dropbox Refuses | jocampo | News | 166 | 09-17-2011 02:06 PM |
Calibre and Dropbox question | jhempel24 | Related Tools | 3 | 05-19-2011 06:41 AM |
Using dropbox and Calibre | totaltech | Related Tools | 7 | 04-29-2011 02:28 PM |
calibre and dropbox error | modkindle | Calibre | 6 | 04-26-2010 10:57 PM |