mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-29 11:52:45 +01:00
Dedupe book authors before inserting links so a repeated name does not abort the scan
This commit is contained in:
1 parent
f1f57d6595
commit
4072054e00
2 files changed
+6
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user