From 8fb8717af8ae11eef7f0cbbe66198e3830f79586 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 21 May 2022 06:03:45 +0530 Subject: [PATCH] Ensure unicode objects are passed as author names when finding duplicates --- src/calibre/db/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/db/utils.py b/src/calibre/db/utils.py index 60badf4ca5..af3c4192a9 100644 --- a/src/calibre/db/utils.py +++ b/src/calibre/db/utils.py @@ -65,7 +65,7 @@ def find_identical_books(mi, data): author_map, aid_map, title_map, lang_map = data found_books = None for a in mi.authors: - author_ids = author_map.get(icu_lower(a)) + author_ids = author_map.get(icu_lower(str(a))) if author_ids is None: return set() books_by_author = {book_id for aid in author_ids for book_id in aid_map.get(aid, ())}