View Single Post
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