Fix OPF file scanner series sequence, book scanner check for mismatched audio file found lengths

This commit is contained in:
advplyr 2023-10-09 17:09:36 -05:00
parent 89821b91b0
commit f84634e978
2 changed files with 3 additions and 3 deletions

View File

@ -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))

View File

@ -38,7 +38,7 @@ class OpfFileScanner {
sequence: opfMetadata.sequence || null
}]
}
} else if (opfMetadata[key]) {
} else if (opfMetadata[key] && key !== 'sequence') {
bookMetadata[key] = opfMetadata[key]
}
}