Thread: Amazon Support
View Single Post
Old 06-23-2009, 06:54 PM   #29
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123457
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
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....
ldolse is offline   Reply With Quote