Browse Source

fix last scan check (#1150)

pull/1152/head
Jason Dove 4 years ago committed by GitHub
parent
commit
e58e3c786d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 4
      ErsatzTV.Application/MediaSources/Commands/CallLocalLibraryScannerHandler.cs

1
CHANGELOG.md

@ -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 playback of content with undefined colorspace
- Fix NVIDIA color normalization with VP9 sources - Fix NVIDIA color normalization with VP9 sources
- Fix fallback filler looping - Fix fallback filler looping
- Fix bug where some libraries would never scan
### Changed ### Changed
- Merge generated `Other Video` folder tags with tags from sidecar NFO - Merge generated `Other Video` folder tags with tags from sidecar NFO

4
ErsatzTV.Application/MediaSources/Commands/CallLocalLibraryScannerHandler.cs

@ -71,9 +71,11 @@ public class CallLocalLibraryScannerHandler : CallLibraryScannerHandler<IScanLoc
.Filter(lp => lp.LibraryId == request.LibraryId) .Filter(lp => lp.LibraryId == request.LibraryId)
.ToListAsync(); .ToListAsync();
return libraryPaths.Any() var minDateTime = libraryPaths.Any()
? libraryPaths.Min(lp => lp.LastScan ?? SystemTime.MinValueUtc) ? libraryPaths.Min(lp => lp.LastScan ?? SystemTime.MinValueUtc)
: SystemTime.MaxValueUtc; : SystemTime.MaxValueUtc;
return new DateTimeOffset(minDateTime, TimeSpan.Zero);
} }
protected override bool ScanIsRequired( protected override bool ScanIsRequired(

Loading…
Cancel
Save