mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-20 04:49:27 +01:00
Fix ebook scan
This commit is contained in:
parent
e83df2bf4b
commit
182545a729
@ -386,13 +386,13 @@ class Scanner {
|
|||||||
await AudioFileScanner.scanAudioFiles(audioFiles, libraryItemData, libraryItem, preferAudioMetadata, libraryScan)
|
await AudioFileScanner.scanAudioFiles(audioFiles, libraryItemData, libraryItem, preferAudioMetadata, libraryScan)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await libraryItem.syncFiles(preferOpfMetadata)
|
||||||
|
|
||||||
if (!libraryItem.hasMediaEntities) {
|
if (!libraryItem.hasMediaEntities) {
|
||||||
Logger.warn(`[Scanner] Library item has no media files "${libraryItemData.path}"`)
|
Logger.warn(`[Scanner] Library item has no media files "${libraryItemData.path}"`)
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
await libraryItem.syncFiles(preferOpfMetadata)
|
|
||||||
|
|
||||||
// Extract embedded cover art if cover is not already in directory
|
// Extract embedded cover art if cover is not already in directory
|
||||||
if (libraryItem.media.hasEmbeddedCoverArt && !libraryItem.media.coverPath) {
|
if (libraryItem.media.hasEmbeddedCoverArt && !libraryItem.media.coverPath) {
|
||||||
var coverPath = await this.coverManager.saveEmbeddedCoverArt(libraryItem)
|
var coverPath = await this.coverManager.saveEmbeddedCoverArt(libraryItem)
|
||||||
|
Loading…
Reference in New Issue
Block a user