mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-20 18:59:37 +00:00
Fix:OPF parser crash when no narrators #1578
This commit is contained in:
parent
aef2c52630
commit
3df7caa838
2 changed files with 3 additions and 3 deletions
|
|
@ -296,7 +296,7 @@ class Book {
|
|||
})
|
||||
}
|
||||
} else if (key === 'narrators') {
|
||||
if (opfMetadata.narrators && opfMetadata.narrators.length && (!this.metadata.narrators.length || opfMetadataOverrideDetails)) {
|
||||
if (opfMetadata.narrators?.length && (!this.metadata.narrators.length || opfMetadataOverrideDetails)) {
|
||||
metadataUpdatePayload.narrators = opfMetadata.narrators
|
||||
}
|
||||
} else if (key === 'series') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue