Best way to locate a book id from title, author or another data?
I'm working in a plugin to update books from one library.
I load a catalog from a file, and then I need to search the database for those books. But I have no IDs, but titles, authors or another data. In fact, I have an unique number for each book, but it's not calibre ID, but a custom column ID.
I know I can load all IDs from db in a list, and then use db.title, db.authors or db.xxx to locate the ID for the books (I suppose it must also be any other function for locating a book ID using a custom column ¿?). But... I think there must be a more eficcient way to do this. Any help?
Last edited by Pepin33; 08-29-2012 at 07:34 AM.