01-16-2009, 02:15 PM | #16 |
Member
Posts: 15
Karma: 10
Join Date: Aug 2007
Device: Sony Reader
|
For anyone who might be interested, here's a java script (.bsh) that will parse a list of ISBNs and put the isbndb metadata into a text file. I'm using the script as a jEdit macro:
http://www.jedit.org/ Note that you must replace ISBNDBKEY with your actual isbndb.com key. -------------------------------------------- //This macro parses a list of ISBNs and, using Calibre's isbndb function, generates a text file (c:\batch\metadata.txt) containing the acquired metadata. runCommandInConsole(view,"System","cd c:\\batch"); textArea.setCaretPosition(0); while(textArea.getCaretLine()+1 < buffer.getLineCount() ) { textArea.selectLine(); String MyISBN = textArea.getSelectedText(); runCommandInConsole(view,"System","isbndb -i=" + MyISBN + " ISBNDBKEY >> metadata.txt"); waitForConsole(view); //Wait for isbndb to finish before going to next file textArea.goToNextLine(false); //Go to next line without selecting it. } -------------------------------------------- Best wishes, Jack |
01-16-2009, 03:22 PM | #17 |
Member
Posts: 18
Karma: 10
Join Date: Jan 2008
Device: PRS505
|
{sorry I've I'd bothered to read the help file, I'd have known the answer - How do I delete a post, the edit/delete button appears to only allow edit}
Is there a "reverse lookup" capability for isbn? For example, I have an author name and a book title, and am looking for the possible ISBNs (clearly there can be multiples, that's OK) Last edited by BruceB; 01-16-2009 at 03:27 PM. |
01-20-2009, 01:47 AM | #18 |
Guru
Posts: 618
Karma: 493394
Join Date: Jun 2008
Location: Seattle, WA
Device: iRex iLiad, Onyx Boox 60
|
Bruce, the isbndb utility can look up books based on title and author, check the help by passing the "-h" flag to the program.
|
Tags |
cli, command line, conversion, metadata |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help downloading metadata by ISBN | pookiepoo | Calibre | 15 | 01-14-2011 10:32 PM |
Metadata BUG adding books | Giuseppe Chillem | Calibre | 3 | 10-08-2010 05:13 PM |
Updating Metadata without and ISBN | herbycanopy | Calibre | 7 | 05-22-2010 01:16 AM |
what calibre does when adding books? (metadata) | jomaweb | Calibre | 1 | 02-06-2010 12:10 PM |
adding metadata | artemisblossom | Calibre | 3 | 09-25-2009 03:24 PM |