mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-18 06:38:31 +01:00
Fix:Updating author name to update author name on each library item
This commit is contained in:
1 parent
f00b120e96
commit
69fcb103e4
2 files changed
+25
-1
No files matched your search
@@ -140,6 +140,14 @@ class BookMetadata {
|
||||
return hasUpdates
|
||||
}
|
||||
|
||||
// Updates author name
|
||||
updateAuthor(updatedAuthor) {
|
||||
var author = this.authors.find(au => au.id === updatedAuthor.id)
|
||||
if (!author || author.name == updatedAuthor.name) return false
|
||||
author.name = updatedAuthor.name
|
||||
return true
|
||||
}
|
||||
|
||||
setData(scanMediaData = {}) {
|
||||
this.title = scanMediaData.title || null
|
||||
this.subtitle = scanMediaData.subtitle || null
|
||||
|
||||
Reference in new issue
Block a user