Fixed episode status of recently imported episodes.

This commit is contained in:
kay.one 2011-07-10 13:07:42 -07:00
commit 8927a938b7
3 changed files with 7 additions and 6 deletions

View file

@ -37,14 +37,14 @@ namespace NzbDrone.Core.Repository
{
get
{
if (EpisodeFileId != 0) return EpisodeStatusType.Ready;
if (GrabDate != null && GrabDate.Value.AddDays(1) >= DateTime.Now)
{
return EpisodeStatusType.Downloading;
}
if (EpisodeFileId != 0) return EpisodeStatusType.Ready;
if (Ignored) return EpisodeStatusType.Ignored;
if (AirDate != null && AirDate.Value.Date < DateTime.Now)