Skip non-expired folders
This commit is contained in:
parent
33e40d3eb6
commit
7a7827e50c
|
@ -75,6 +75,9 @@ func walkFolder(ctx context.Context, scanCtx *scanContext, currentFolder string,
|
|||
}
|
||||
}
|
||||
|
||||
if !folder.isExpired() && !scanCtx.fullRescan {
|
||||
return nil
|
||||
}
|
||||
dir := filepath.Clean(currentFolder)
|
||||
log.Trace(ctx, "Scanner: Found directory", "_path", dir, "audioFiles", maps.Keys(folder.audioFiles),
|
||||
"images", maps.Keys(folder.imageFiles), "playlists", folder.playlists, "imagesUpdatedAt", folder.imagesUpdatedAt,
|
||||
|
|
Loading…
Reference in New Issue