mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-02 17:24:57 +02:00
Fix scanner after deleting single file books #4459
This commit is contained in:
parent
4102ed8be4
commit
df1391d93f
3 changed files with 11 additions and 1 deletions
|
@ -206,6 +206,11 @@ class LibraryItemScanner {
|
|||
async scanPotentialNewLibraryItem(libraryItemPath, library, folder, isSingleMediaItem) {
|
||||
const libraryItemScanData = await this.getLibraryItemScanData(libraryItemPath, library, folder, isSingleMediaItem)
|
||||
|
||||
if (!libraryItemScanData.libraryFiles.length) {
|
||||
Logger.info(`[LibraryItemScanner] Library item at path "${libraryItemPath}" has no files - ignoring`)
|
||||
return null
|
||||
}
|
||||
|
||||
const scanLogger = new ScanLogger()
|
||||
scanLogger.verbose = true
|
||||
scanLogger.setData('libraryItem', libraryItemScanData.relPath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue