mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-08 02:11:35 +00:00
Add logging when author normalization is empty
This commit is contained in:
parent
6b97fc0ce6
commit
c814a84b27
3 changed files with 12 additions and 2 deletions
|
|
@ -250,7 +250,10 @@ class Scanner {
|
|||
const existingAuthor = libraryItem.media.authors.find((a) => Database.authorModel.isAuthorNameMatch(a.name, authorName))
|
||||
if (!existingAuthor) {
|
||||
const { author, created: isCreated } = await Database.authorModel.findOrCreateByNameAndLibrary(authorName, libraryItem.libraryId)
|
||||
if (!author) continue
|
||||
if (!author) {
|
||||
libraryScan.addLog(LogLevel.WARN, `Skipping author "${authorName}" because normalized name was empty`)
|
||||
continue
|
||||
}
|
||||
if (isCreated) {
|
||||
SocketAuthority.emitter('author_added', author.toOldJSON())
|
||||
// Update filter data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue