View Single Post
Old 12-05-2011, 03:33 AM   #5
Junior Member
vov began at the beginning.
Posts: 2
Karma: 10
Join Date: Aug 2010
Device: none
Perhaps I didn't make things clear enough.

% ls -CF *recipe

% for i in *.recipe ; do ebook-convert $i $(basename $i recipe)epub; done
1% Converting input to HTML...
InputFormatPlugin: Recipe Input running
Traceback (most recent call last):
File "", line 58, in main
File "site-packages/calibre/ebooks/conversion/", line 287, in main
File "site-packages/calibre/ebooks/conversion/", line 959, in run
File "site-packages/calibre/customize/", line 204, in __call__
File "site-packages/calibre/web/feeds/", line 104, in convert
File "site-packages/calibre/web/feeds/", line 718, in __init__
ValueError: The "Instapaper" recipe needs a username and password.

But I had included these lines in the instapaper.recipe

username = "user@bla.bla"
password = "password"

I know that I can do this instead, but it is not what I want:
ebook-convert instapaper.recipe instapaper.epub --username="user@bla.bla" --password="password"

I'd like the conversion to loop through several recipes some of which may require usernames and passwords, hence my request to have the option of storing those in the recipe. I wouldn't want to pass those values explicitly via the script for maintenance reasons.

vov is offline   Reply With Quote