|
|
@ -128,7 +128,7 @@ namespace NzbDrone.Core.MediaFiles
|
|
|
|
{
|
|
|
|
{
|
|
|
|
unwanted = combined
|
|
|
|
unwanted = combined
|
|
|
|
.Where(x => x.DiskFile.Length == x.DbFile.Size &&
|
|
|
|
.Where(x => x.DiskFile.Length == x.DbFile.Size &&
|
|
|
|
Math.Abs((x.DiskFile.LastWriteTimeUtc - x.DbFile.Modified).TotalSeconds) <= 1)
|
|
|
|
Math.Abs((x.DiskFile.LastWriteTimeUtc - x.DbFile.Modified.ToUniversalTime()).TotalSeconds) <= 1)
|
|
|
|
.Select(x => x.DiskFile)
|
|
|
|
.Select(x => x.DiskFile)
|
|
|
|
.ToList();
|
|
|
|
.ToList();
|
|
|
|
_logger.Trace($"{unwanted.Count} unchanged existing files");
|
|
|
|
_logger.Trace($"{unwanted.Count} unchanged existing files");
|
|
|
@ -137,7 +137,7 @@ namespace NzbDrone.Core.MediaFiles
|
|
|
|
{
|
|
|
|
{
|
|
|
|
unwanted = combined
|
|
|
|
unwanted = combined
|
|
|
|
.Where(x => x.DiskFile.Length == x.DbFile.Size &&
|
|
|
|
.Where(x => x.DiskFile.Length == x.DbFile.Size &&
|
|
|
|
Math.Abs((x.DiskFile.LastWriteTimeUtc - x.DbFile.Modified).TotalSeconds) <= 1 &&
|
|
|
|
Math.Abs((x.DiskFile.LastWriteTimeUtc - x.DbFile.Modified.ToUniversalTime()).TotalSeconds) <= 1 &&
|
|
|
|
(x.DbFile.Tracks == null || (x.DbFile.Tracks.IsLoaded && x.DbFile.Tracks.Value.Any())))
|
|
|
|
(x.DbFile.Tracks == null || (x.DbFile.Tracks.IsLoaded && x.DbFile.Tracks.Value.Any())))
|
|
|
|
.Select(x => x.DiskFile)
|
|
|
|
.Select(x => x.DiskFile)
|
|
|
|
.ToList();
|
|
|
|
.ToList();
|
|
|
|