|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using NzbDrone.Core.Datastore;
|
|
|
|
|
using NzbDrone.Core.Messaging.Events;
|
|
|
|
|
using Marr.Data.QGen;
|
|
|
|
|
using NzbDrone.Core.Tv;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Blacklisting
|
|
|
|
|
{
|
|
|
|
@ -27,5 +29,12 @@ namespace NzbDrone.Core.Blacklisting
|
|
|
|
|
{
|
|
|
|
|
return Query.Where(b => b.SeriesId == seriesId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override SortBuilder<Blacklist> GetPagedQuery(QueryBuilder<Blacklist> query, PagingSpec<Blacklist> pagingSpec)
|
|
|
|
|
{
|
|
|
|
|
var baseQuery = query.Join<Blacklist, Series>(JoinType.Inner, h => h.Series, (h, s) => h.SeriesId == s.Id);
|
|
|
|
|
|
|
|
|
|
return base.GetPagedQuery(baseQuery, pagingSpec);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|