mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-28 19:32:45 +01:00
Update:Changing author name to match another authors name will merge the authors #487
This commit is contained in:
1 parent
217bbb4a8e
commit
6cbfd8679b
3 files changed
+61
-22
No files matched your search
@@ -191,6 +191,14 @@ class BookMetadata {
|
||||
return true
|
||||
}
|
||||
|
||||
replaceAuthor(oldAuthor, newAuthor) {
|
||||
this.authors = this.authors.filter(au => au.id !== oldAuthor.id) // Remove old author
|
||||
this.authors.push({
|
||||
id: newAuthor.id,
|
||||
name: newAuthor.name
|
||||
})
|
||||
}
|
||||
|
||||
setData(scanMediaData = {}) {
|
||||
this.title = scanMediaData.title || null
|
||||
this.subtitle = scanMediaData.subtitle || null
|
||||
|
||||
Reference in new issue
Block a user