|
|
|
@ -25,7 +25,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
|
|
|
|
|
{
|
|
|
|
|
_logger.Debug("Checking if all albums in discography release have released. {0}", subject.Release.Title);
|
|
|
|
|
|
|
|
|
|
if (subject.Albums.Any(e => !e.ReleaseDate.HasValue || e.ReleaseDate.Value.After(DateTime.UtcNow)))
|
|
|
|
|
if (subject.Albums.Any(e => !e.ReleaseDate.HasValue || e.ReleaseDate.Value.After(DateTime.UtcNow.AddHours(24))))
|
|
|
|
|
{
|
|
|
|
|
_logger.Debug("Discography release {0} rejected. All albums haven't released yet.", subject.Release.Title);
|
|
|
|
|
return Decision.Reject("Discography release rejected. All albums haven't released yet.");
|
|
|
|
|