mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +01:00
fix using OMMs with regular scan option
This commit is contained in:
parent
8754f0c25f
commit
6064e8af87
@ -358,12 +358,11 @@ class Book {
|
|||||||
return audioFile
|
return audioFile
|
||||||
})
|
})
|
||||||
|
|
||||||
Logger.debug(`[Book] WE ARE INSIDE UPDATE AUDIO TRACKS ========================`)
|
|
||||||
this.rebuildTracks()
|
this.rebuildTracks()
|
||||||
}
|
}
|
||||||
|
|
||||||
rebuildTracks(preferOverdriveMediaMarker) {
|
rebuildTracks(preferOverdriveMediaMarker) {
|
||||||
Logger.debug(`[Book] we are rebuilding the tracks!`)
|
Logger.debug(`[Book] Tracks being rebuilt...!`)
|
||||||
Logger.debug(`[Book] preferOverdriveMediaMarker: ${JSON.stringify(preferOverdriveMediaMarker)}`)
|
Logger.debug(`[Book] preferOverdriveMediaMarker: ${JSON.stringify(preferOverdriveMediaMarker)}`)
|
||||||
this.audioFiles.sort((a, b) => a.index - b.index)
|
this.audioFiles.sort((a, b) => a.index - b.index)
|
||||||
this.missingParts = []
|
this.missingParts = []
|
||||||
|
@ -316,7 +316,7 @@ class Scanner {
|
|||||||
|
|
||||||
async scanNewLibraryItemDataChunk(newLibraryItemsData, libraryScan) {
|
async scanNewLibraryItemDataChunk(newLibraryItemsData, libraryScan) {
|
||||||
var newLibraryItems = await Promise.all(newLibraryItemsData.map((lid) => {
|
var newLibraryItems = await Promise.all(newLibraryItemsData.map((lid) => {
|
||||||
return this.scanNewLibraryItem(lid, libraryScan.libraryMediaType, libraryScan.preferAudioMetadata, libraryScan.preferOpfMetadata, libraryScan.findCovers, libraryScan.preferOverdriveMediaMarker, libraryScan)
|
return this.scanNewLibraryItem(lid, libraryScan.libraryMediaType, libraryScan.preferAudioMetadata, libraryScan.preferOpfMetadata, libraryScan.findCovers, libraryScan.scanOptions.preferOverdriveMediaMarker, libraryScan)
|
||||||
}))
|
}))
|
||||||
newLibraryItems = newLibraryItems.filter(li => li) // Filter out nulls
|
newLibraryItems = newLibraryItems.filter(li => li) // Filter out nulls
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user