mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-01 05:29:41 +00:00
Fix scanner isInvalid flag and recursive path symlink bug
This commit is contained in:
parent
ed48fd8558
commit
d8c89f2b8e
6 changed files with 78 additions and 9 deletions
|
|
@ -404,9 +404,15 @@ class BookScanner {
|
|||
existingLibraryItem.isMissing = true
|
||||
libraryItemUpdated = true
|
||||
}
|
||||
} else if (existingLibraryItem.isMissing) {
|
||||
libraryScan.addLog(LogLevel.INFO, `Book "${bookMetadata.title}" was missing but now has media files. Setting library item as NOT missing`)
|
||||
existingLibraryItem.isMissing = false
|
||||
} else if (existingLibraryItem.isMissing || existingLibraryItem.isInvalid) {
|
||||
if (existingLibraryItem.isMissing) {
|
||||
libraryScan.addLog(LogLevel.INFO, `Book "${bookMetadata.title}" was missing but now has media files. Setting library item as NOT missing`)
|
||||
existingLibraryItem.isMissing = false
|
||||
}
|
||||
if (existingLibraryItem.isInvalid) {
|
||||
libraryScan.addLog(LogLevel.INFO, `Book "${bookMetadata.title}" was invalid but now has media files. Setting library item as NOT invalid`)
|
||||
existingLibraryItem.isInvalid = false
|
||||
}
|
||||
libraryItemUpdated = true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue