mirror of https://github.com/Radarr/Radarr
Fix error when MinimumAvailability was Announced and Delay was negative.
This commit is contained in:
parent
fbf790e9fd
commit
23754c49dc
|
@ -98,7 +98,13 @@ namespace NzbDrone.Core.Tv
|
|||
return true;
|
||||
}
|
||||
|
||||
return DateTime.Now >= MinimumAvailabilityDate.AddDays((double)delay);
|
||||
if (MinimumAvailabilityDate == DateTime.MinValue || MinimumAvailabilityDate == DateTime.MaxValue)
|
||||
{
|
||||
return DateTime.Now >= MinimumAvailabilityDate;
|
||||
}
|
||||
|
||||
|
||||
return DateTime.Now >= MinimumAvailabilityDate.AddDays((double)delay);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
|
|
Loading…
Reference in New Issue