Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 02-27-2011, 03:03 PM   #1
mic47
Master Yoda
mic47 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2011
Device: Kindle
ebook-convert: use user recipies

Hi,

I am trying to do following thing:
I have an account on a server where is installed calibre (0.7.43). I want every day, to download some news and send it to my kindle. I script, that does following:
1.) ebook-convert foo.recipe foo.mobi
2.) mutt <email> -a foo.mobi

If foo is builtin-recipe (or that is downloadable), than it work. But if foo is user recipe (or changed builtin recipe -- through calibre gui) it does not work. I've got following error message:

Failed to compile downloaded recipe. Falling back to builtin one
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/web/feeds/input.py", line 78, in convert
recipe = compile_recipe(raw)
File "/usr/lib/calibre/calibre/web/feeds/recipes/__init__.py", line 33, in compile_recipe
match = re.search(r'coding[:=]\s*([-\w.]+)', src[:200])
TypeError: 'NoneType' object is unsubscriptable


It looks like the ebook-convert cannot take user-recipe that I created in GUI. Is there any workaround or am I doing something wrong?

Thank you
mic47 is offline   Reply With Quote
Old 02-27-2011, 05:53 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
just copy paste the recipe from the gui into a text editor and save it as a a .recipe file.
kovidgoyal is offline   Reply With Quote
Advert
Old 02-27-2011, 09:49 PM   #3
mic47
Master Yoda
mic47 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2011
Device: Kindle
Thank you, it works.
mic47 is offline   Reply With Quote
Old 03-07-2011, 09:21 AM   #4
Farhad
Zealot
Farhad can extract oil from cheeseFarhad can extract oil from cheeseFarhad can extract oil from cheeseFarhad can extract oil from cheeseFarhad can extract oil from cheeseFarhad can extract oil from cheeseFarhad can extract oil from cheeseFarhad can extract oil from cheeseFarhad can extract oil from cheese
 
Farhad's Avatar
 
Posts: 139
Karma: 1248
Join Date: Feb 2011
Location: Florida
Device: N800/Nokia 5230/PB IQ701/PB 360
Need help renaming files after conversion

message deleted by author

Last edited by Farhad; 03-08-2011 at 07:57 AM. Reason: posted in the wrong forum
Farhad is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to batch-convert with ebook-convert? cypresstwist Conversion 8 02-22-2011 09:28 AM
New ebook user fmasi Introduce Yourself 7 06-24-2010 08:09 PM
New ebook user from Sweden bokbilling Introduce Yourself 4 09-21-2009 05:20 PM


All times are GMT -4. The time now is 10:02 AM.


MobileRead.com is a privately owned, operated and funded community.