Dedupe book authors before inserting links so a repeated name does not abort the scan

This commit is contained in:
mikiher committed 2026-11-01 09:12:50 +02:00
1 parent f1f57d6595
commit 4072054e00
2 files changed
+6

No files matched your search

+3
View File
@@ -703,6 +703,9 @@ class BookScanner {
bookMetadata.description = htmlSanitizer.sanitize(bookMetadata.description)
}
// One dedupe after every metadata source. A repeated name inserts the same bookAuthor twice and aborts the scan.
bookMetadata.authors = parseNameString.dedupeNames(bookMetadata.authors)
return bookMetadata
}