Fix error when MinimumAvailability was Announced and Delay was negative.

Leonardo Galli 8 years ago
parent fbf790e9fd
commit 23754c49dc

@ -98,6 +98,12 @@ namespace NzbDrone.Core.Tv
return true; return true;
} }
if (MinimumAvailabilityDate == DateTime.MinValue || MinimumAvailabilityDate == DateTime.MaxValue)
{
return DateTime.Now >= MinimumAvailabilityDate;
}
return DateTime.Now >= MinimumAvailabilityDate.AddDays((double)delay); return DateTime.Now >= MinimumAvailabilityDate.AddDays((double)delay);
} }

Loading…
Cancel
Save