Episodes older than 14 days have their own priority

This commit is contained in:
Mark McDowall 2013-07-07 20:15:15 -07:00
commit 98e94643fb
16 changed files with 164 additions and 66 deletions

View file

@ -1,4 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using NzbDrone.Core.Tv;
namespace NzbDrone.Core.Parser.Model
@ -12,5 +14,10 @@ namespace NzbDrone.Core.Parser.Model
public Series Series { get; set; }
public List<Episode> Episodes { get; set; }
public bool IsRecentEpisode()
{
return Episodes.Any(e => e.AirDate >= DateTime.Today.AddDays(-14));
}
}
}