Blacklist uses seriesId for index

This commit is contained in:
Mark McDowall 2014-02-22 16:25:32 -08:00
parent 3e5117cce2
commit ab3dbfc240
1 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,9 @@ namespace NzbDrone.Core.Blacklisting
public bool Blacklisted(int seriesId, string sourceTitle)
{
return Query.Where(e => e.SourceTitle.Contains(sourceTitle)).Any();
return Query.Where(e => e.SeriesId == seriesId)
.AndWhere(e => e.SourceTitle.Contains(sourceTitle))
.Any();
}
public List<Blacklist> BlacklistedBySeries(int seriesId)