mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-28 21:19:42 +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
|
|
@ -239,6 +239,18 @@ class PodcastScanner {
|
|||
libraryItemUpdated = true
|
||||
}
|
||||
|
||||
if (existingLibraryItem.isMissing || existingLibraryItem.isInvalid) {
|
||||
if (existingLibraryItem.isMissing) {
|
||||
libraryScan.addLog(LogLevel.INFO, `Podcast "${podcastMetadata.title}" was missing but is now found. Setting library item as NOT missing`)
|
||||
existingLibraryItem.isMissing = false
|
||||
}
|
||||
if (existingLibraryItem.isInvalid) {
|
||||
libraryScan.addLog(LogLevel.INFO, `Podcast "${podcastMetadata.title}" was invalid but is now found. Setting library item as NOT invalid`)
|
||||
existingLibraryItem.isInvalid = false
|
||||
}
|
||||
libraryItemUpdated = true
|
||||
}
|
||||
|
||||
// Save Podcast changes to db
|
||||
if (hasMediaChanges) {
|
||||
await media.save()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue