Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/commit/446a0591dbf25664435c36887e4f1d1c75c3e4d7 You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fixed: Duplicates in wanted page

pull/838/head
ta264 4 years ago
parent 69773db77a
commit 446a0591db

@ -94,6 +94,7 @@ namespace NzbDrone.Core.Books
.Join<Book, Edition>((b, e) => b.Id == e.BookId)
.LeftJoin<Edition, BookFile>((t, f) => t.Id == f.EditionId)
.Where<BookFile>(f => f.Id == null)
.Where<Edition>(e => e.Monitored == true)
.Where<Book>(a => a.ReleaseDate <= currentTime);
#pragma warning restore CS0472
@ -111,6 +112,7 @@ namespace NzbDrone.Core.Books
.Join<Book, Author>((l, r) => l.AuthorMetadataId == r.AuthorMetadataId)
.Join<Book, Edition>((b, e) => b.Id == e.BookId)
.LeftJoin<Edition, BookFile>((t, f) => t.Id == f.EditionId)
.Where<Edition>(e => e.Monitored == true)
.Where(BuildQualityCutoffWhereClause(qualitiesBelowCutoff));
private string BuildQualityCutoffWhereClause(List<QualitiesBelowCutoff> qualitiesBelowCutoff)
@ -198,7 +200,8 @@ namespace NzbDrone.Core.Books
return Query(Builder()
.Join<Book, Edition>((b, e) => b.Id == e.BookId)
.Join<Edition, BookFile>((t, f) => t.Id == f.EditionId)
.Where<Book>(x => x.AuthorMetadataId == author.AuthorMetadataId));
.Where<Book>(x => x.AuthorMetadataId == author.AuthorMetadataId)
.Where<Edition>(e => e.Monitored == true));
}
}
}

Loading…
Cancel
Save