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

Fiddle release date

pull/1319/head
ta264 3 years ago
parent 6bdfe01fbc
commit d1caed5c7d

@ -251,6 +251,20 @@ namespace NzbDrone.Core.MetadataSource.BookInfo
book.Editions = new List<Edition>();
}
// sometimes the work release date is after the earliest good edition release
var editionReleases = book.Editions.Value
.Where(x => x.ReleaseDate.HasValue && x.ReleaseDate.Value.Month != 1 && x.ReleaseDate.Value.Day != 1)
.ToList();
if (editionReleases.Any())
{
var earliestRelease = editionReleases.Min(x => x.ReleaseDate.Value);
if (earliestRelease < book.ReleaseDate)
{
book.ReleaseDate = earliestRelease;
}
}
Debug.Assert(!book.Editions.Value.Any() || book.Editions.Value.Count(x => x.Monitored) == 1, "one edition monitored");
book.AnyEditionOk = true;

Loading…
Cancel
Save