mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-10 17:34:58 +02:00
Fix OPF file scanner series sequence, book scanner check for mismatched audio file found lengths
This commit is contained in:
parent
89821b91b0
commit
f84634e978
2 changed files with 3 additions and 3 deletions
|
@ -76,8 +76,8 @@ class BookScanner {
|
|||
]
|
||||
})
|
||||
|
||||
let hasMediaChanges = libraryItemData.hasAudioFileChanges
|
||||
if (libraryItemData.hasAudioFileChanges || libraryItemData.audioLibraryFiles.length !== media.audioFiles.length) {
|
||||
let hasMediaChanges = libraryItemData.hasAudioFileChanges || libraryItemData.audioLibraryFiles.length !== media.audioFiles.length
|
||||
if (hasMediaChanges) {
|
||||
// Filter out audio files that were removed
|
||||
media.audioFiles = media.audioFiles.filter(af => !libraryItemData.checkAudioFileRemoved(af))
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ class OpfFileScanner {
|
|||
sequence: opfMetadata.sequence || null
|
||||
}]
|
||||
}
|
||||
} else if (opfMetadata[key]) {
|
||||
} else if (opfMetadata[key] && key !== 'sequence') {
|
||||
bookMetadata[key] = opfMetadata[key]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue