View Single Post
Old 12-05-2011, 03:33 AM   #5
vov
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
instapaper_calibre.recipe
spiegel_int.recipe
theonion.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 "site.py", line 58, in main
File "site-packages/calibre/ebooks/conversion/cli.py", line 287, in main
File "site-packages/calibre/ebooks/conversion/plumber.py", line 959, in run
File "site-packages/calibre/customize/conversion.py", line 204, in __call__
File "site-packages/calibre/web/feeds/input.py", line 104, in convert
File "site-packages/calibre/web/feeds/news.py", 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.

Thanks.
vov is offline   Reply With Quote