|
|
#1 |
|
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Oct 2011
Device: Kindle 3
|
Customized recipes from command line
Hello,
I am experimenting running calibre (0.8.51) on a Raspberry Pi (with Debian "Wheezy"). This particular calibre package doesn't support any GUI. I can download/convert news with the command "ebook-convert" from source recipes. But is there any way to use command line to download customised recipes? What when you need to add user/password to the recipe? |
|
|
|
|
|
#2 |
|
onlinenewsreader.net
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 334
Karma: 10143
Join Date: Dec 2009
Location: Kelowna BC
Device: Various
|
Sure, just provide the path to the customized recipe on the command line.
|
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Oct 2011
Device: Kindle 3
|
Quote:
Code:
"BBC News" Thank you. |
|
|
|
|
|
|
#4 |
|
onlinenewsreader.net
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 334
Karma: 10143
Join Date: Dec 2009
Location: Kelowna BC
Device: Various
|
Calibre uses the recipe path you provide, unless it cannot be found in which case it falls back to the built-in recipe.
|
|
|
|
|
|
#5 |
|
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Oct 2011
Device: Kindle 3
|
Great!
Another think I don't understand, after downloading and converting the ebook to add it to the library AND to database I need to provide two different commands? Or the command add will automatically taking care of adding the ebook to the library? |
|
|
|
| Advert | |
|
|
|
|
#6 |
|
onlinenewsreader.net
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 334
Karma: 10143
Join Date: Dec 2009
Location: Kelowna BC
Device: Various
|
Aren't these questions you could answer yourself by trying it? Alternatively, why not read the documentation?
|
|
|
|
|
|
#7 | |
|
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Oct 2011
Device: Kindle 3
|
Quote:
I spent 3 hours on the Raspberry Pi to restore my database so I am not up to experimenting and mess it again. If you don't want to answer my questions just don't do it. What's the point in asking me not to ask? |
|
|
|
|
|
|
#8 | |
|
onlinenewsreader.net
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 334
Karma: 10143
Join Date: Dec 2009
Location: Kelowna BC
Device: Various
|
Quote:
No need to get snippy. Your questions seem very elementary and easily answered by typing a couple of lines on the command line interface. Experimenting with the command line tools is not likely to mess up your database. Since that is what you are going to be using, you'll have to do a bit of experimentation because the command line interface is not a GUI, and hence not as obvious (or thoroughly documented). Good luck, I won't be back in this thread. |
|
|
|
|
|
|
#9 | ||
|
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Oct 2011
Device: Kindle 3
|
Quote:
Quote:
Code:
ebook-convert /home/calibre-library/Foreign_Affairs_Custom.recipe /home/foreignaffairs.mobi --output-profile kindle Code:
1% Converting input to HTML...
InputFormatPlugin: Recipe Input running
Failed to compile downloaded recipe. Falling back to builtin one
Traceback (most recent call last):
File "/usr/bin/ebook-convert", line 19, in <module>
sys.exit(main())
File "/usr/lib/calibre/calibre/ebooks/conversion/cli.py", line 323, in main
plumber.run()
File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 972, in run
accelerators, tdir)
File "/usr/lib/calibre/calibre/customize/conversion.py", line 208, in __call__
log, accelerators)
File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/recipe_input.py", line 93, in convert
raise ValueError('Failed to find builtin recipe: '+title)
ValueError: Failed to find builtin recipe: Foreign_Affairs_Custom
Last edited by cptnemo; 04-20-2013 at 12:32 AM. |
||
|
|
|
![]() |
| Tags |
| calibre-server, command-line, recipe |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Command line - HOW? | bookfanmd | Calibre | 19 | 01-12-2013 10:17 AM |
| Help with command line | shotsky | Conversion | 6 | 07-23-2012 10:40 AM |
| Updating built-in recipes from command line on headless server? | khromov | Related Tools | 1 | 07-03-2012 02:47 PM |
| Need help using command line | tsger | Recipes | 2 | 07-16-2011 04:23 AM |
| Why use the command line? | slantybard | Calibre | 6 | 07-22-2009 01:17 PM |