IsIgnored will now be checked when adding new episodes to the DB, it will:

- ignore new episodes of a season if that season was already ignored
- ignore new seasons if the previous was ignored
- ignore specials (when a new series is added), if a user chooses to download specials, all new specials will not be ignored

Added tests for IsIgnored and AddEpisode changes.
This commit is contained in:
Mark McDowall 2011-07-22 17:57:52 -07:00
commit 0ed898b6db
3 changed files with 249 additions and 17 deletions

View file

@ -36,6 +36,10 @@ namespace NzbDrone.Core.Datastore
public override Func<object, object> GetFromDbConverter(PropertyInfo propertyInfo, Type sourceType)
{
//Only needed if using dynamic as the return type from DB, not implemented currently as it has no use right now
//if (propertyInfo == null)
// return null;
return GetFromDbConverter(propertyInfo.PropertyType, sourceType);
}
}