fix last scan check (#1150)

This commit is contained in:
Jason Dove
2023-02-06 05:38:08 -06:00
committed by GitHub
parent 93fc1e4eb4
commit e58e3c786d
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix playback of content with undefined colorspace
- Fix NVIDIA color normalization with VP9 sources
- Fix fallback filler looping
- Fix bug where some libraries would never scan
### Changed
- Merge generated `Other Video` folder tags with tags from sidecar NFO
@@ -71,9 +71,11 @@ public class CallLocalLibraryScannerHandler : CallLibraryScannerHandler<IScanLoc
.Filter(lp => lp.LibraryId == request.LibraryId)
.ToListAsync();
return libraryPaths.Any()
var minDateTime = libraryPaths.Any()
? libraryPaths.Min(lp => lp.LastScan ?? SystemTime.MinValueUtc)
: SystemTime.MaxValueUtc;
return new DateTimeOffset(minDateTime, TimeSpan.Zero);
}
protected override bool ScanIsRequired(