diff --git a/src/NzbDrone.Core/Books/Repositories/BookRepository.cs b/src/NzbDrone.Core/Books/Repositories/BookRepository.cs index a4dc07ed6..4ea01e1f9 100644 --- a/src/NzbDrone.Core/Books/Repositories/BookRepository.cs +++ b/src/NzbDrone.Core/Books/Repositories/BookRepository.cs @@ -94,6 +94,7 @@ private SqlBuilder BooksWithoutFilesBuilder(DateTime currentTime) => Builder() .Join((b, e) => b.Id == e.BookId) .LeftJoin((t, f) => t.Id == f.EditionId) .Where(f => f.Id == null) + .Where(e => e.Monitored == true) .Where(a => a.ReleaseDate <= currentTime); #pragma warning restore CS0472 @@ -111,6 +112,7 @@ private SqlBuilder BooksWhereCutoffUnmetBuilder(List quali .Join((l, r) => l.AuthorMetadataId == r.AuthorMetadataId) .Join((b, e) => b.Id == e.BookId) .LeftJoin((t, f) => t.Id == f.EditionId) + .Where(e => e.Monitored == true) .Where(BuildQualityCutoffWhereClause(qualitiesBelowCutoff)); private string BuildQualityCutoffWhereClause(List qualitiesBelowCutoff) @@ -198,7 +200,8 @@ public List GetAuthorBooksWithFiles(Author author) return Query(Builder() .Join((b, e) => b.Id == e.BookId) .Join((t, f) => t.Id == f.EditionId) - .Where(x => x.AuthorMetadataId == author.AuthorMetadataId)); + .Where(x => x.AuthorMetadataId == author.AuthorMetadataId) + .Where(e => e.Monitored == true)); } } }