08-18-2010, 12:56 PM | #1 |
Member
Posts: 10
Karma: 10
Join Date: Aug 2010
Device: iPad 2, iPod Touch (2G), Nokia N800
|
Auto-generate multiple formats
Using Calibre .7.14 I can currently download news recipes in the selected default format (for me, mobi.)
However I'd also like to have the news in ePub. Is there any way to automate the conversion to ePub? I know I can manually convert it. Maybe some command line intervention that I could schedule to run the appropriate time? The goal is to have the file in the correct format when I access remotely via the content server from either my Kindle 2 or the iPhone iBooks reader. Any ideas would be much appreciated. Thanks! |
08-18-2010, 05:16 PM | #2 | |
Wizard
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Quote:
|
|
Advert | |
|
08-19-2010, 10:04 AM | #3 |
Member
Posts: 10
Karma: 10
Join Date: Aug 2010
Device: iPad 2, iPod Touch (2G), Nokia N800
|
I can access Calibre on the iPhone using the web browser, then open the file using iBooks.
The real issue is getting Calibre to automatically create an ePub version in addition to my default format of .Mobi. There doesn't appear to be a way to set Calibre to create two formats automatically. I've done a little bit of investigating into doing a conversion at the command line, but I don't know yet if this is really a viable option. |
08-19-2010, 12:54 PM | #4 |
creator of calibre
Posts: 44,313
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need to use the ebook-convert command line tool to downlaod each news recipe twice, once per output format.
|
08-21-2010, 01:23 PM | #5 |
Member
Posts: 10
Karma: 10
Join Date: Aug 2010
Device: iPad 2, iPod Touch (2G), Nokia N800
|
Thanks for pointing me in the right direction! I have my batch file for Windows XP Home written and working; it may not be the most elegant, but I post it here in case others are interested:
REM -------------------------------------------- REM Set a variable called TODAY with today's date REM -------------------------------------------- REM for /f "tokens=2-4 delims=/ " %%a in ('date /T') do set year=%%c for /f "tokens=2-4 delims=/ " %%a in ('date /T') do set month=%%a for /f "tokens=2-4 delims=/ " %%a in ('date /T') do set day=%%b set TODAY=%year%-%month%-%day% REM REM -------------------------------------------- REM Change directories REM -------------------------------------------- REM cd "C:\Program Files\Calibre2\resources\recipes" REM REM -------------------------------------------- REM Grab all the recipes for today REM -------------------------------------------- REM start /wait ebook-convert usatoday.recipe "C:\Program Files\Calibre2\resources\mynews\usatoday\%today%.u satoday.mobi" start /wait ebook-convert usatoday.recipe "C:\Program Files\Calibre2\resources\mynews\usatoday\%today%.u satoday.epub" REM REM -------------------------------------------- REM List the Database contents and add new files REM -------------------------------------------- REM start /wait calibredb list start /wait calibredb add -1 -d "C:\Program Files\Calibre2\resources\mynews\usatoday" REM REM -------------------------------------------- REM Make a backup and clean working directory REM -------------------------------------------- REM copy "C:\Program Files\Calibre2\resources\mynews\usatoday\*.*" "E:\files\eBooks\originals\News\*.*" del/q "C:\Program Files\Calibre2\resources\mynews\usatoday\*.*" REM REM -------------------------------------------- REM Exit Gracefully REM -------------------------------------------- REM exit |
Advert | |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
<Command Line> Add multiple books in multiple formats | himitsu | Calibre | 8 | 09-25-2010 11:07 PM |
Bug: entries with multiple formats trigger multiple conversions | flinx1 | Calibre | 12 | 05-21-2010 06:23 AM |
How not to auto-generate TOC in Calibre -setting? | Jundle | Calibre | 0 | 05-05-2010 02:53 AM |
Multiple formats - What gets sent | edbro | Calibre | 2 | 01-20-2010 08:38 PM |
The Grove for $.99, now in multiple formats | jrector | Writers' Corner | 1 | 08-07-2009 10:15 AM |