Not at all, that's pretty sweet. The rest of the conversation is still pertinent to using Amazon as a general metadata source, but that's an excellent shortcut to getting images.
Kovid, tried
calibre-debug -c "from calibre.ebooks.metadata.amazon import main; main('isbn', 'key');"
Replacing ISBN and Key as described, also tried key and group, as that's what's currently tied to variables in the function. However neither worked as I'm getting an error that calibre can't find the function:
Code:
calibre-debug -c "from calibre.ebooks.metadata.amazon import main; main('isbn', 'key');"
Traceback (most recent call last):
File "/Applications/calibre Beta6.app/Contents/Resources/loaders/calibre-debug.py", line 9, in <module>
main()
File "/Applications/calibre Beta6.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/debug.py", line 155, in main
File "<string>", line 1, in <module>
ImportError: No module named amazon
I'm using beta 8 of .6, and as that file is in trunk I believe it should be there....