In my FFDL plugin I've been successfully using LibraryDatabase2.find_identical_books(mi) to find existing, matching books for some time, like so:
This works until somewhere between 50 and 120 authors. 50 works, but when there's 120 authors the find fails due to recursion depth exceeded:
Is there a better way to find matching books?
I hesitate to call it a bug because 120 authors is kind of crazy. But calibre is okay with having books with that many authors, it's just the find_identical_books call that fails.
Code:
mi = MetaInformation(story.getMetadata("title"),
story.getList("author"))
identicalbooks = db.find_identical_books(mi)
Spoiler:
Is there a better way to find matching books?
I hesitate to call it a bug because 120 authors is kind of crazy. But calibre is okay with having books with that many authors, it's just the find_identical_books call that fails.