mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-19 18:29:37 +00:00
Merge 961d066bdd into 626596b192
This commit is contained in:
commit
2ca52c14d2
1 changed files with 1 additions and 2 deletions
|
|
@ -259,7 +259,7 @@ class Scanner {
|
|||
SocketAuthority.emitter('author_added', author.toOldJSON())
|
||||
// Update filter data
|
||||
Database.addAuthorToFilterData(libraryItem.libraryId, author.name, author.id)
|
||||
|
||||
}
|
||||
await Database.bookAuthorModel
|
||||
.create({
|
||||
authorId: author.id,
|
||||
|
|
@ -271,7 +271,6 @@ class Scanner {
|
|||
hasAuthorUpdates = true
|
||||
})
|
||||
}
|
||||
}
|
||||
const authorsRemoved = libraryItem.media.authors.filter((a) => !matchData.author.find((ma) => ma.toLowerCase() === a.name.toLowerCase()))
|
||||
if (authorsRemoved.length) {
|
||||
for (const author of authorsRemoved) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue