mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
Fixed: Include Digital Only Releases for Recent Movie determination
Use most recent of physical or digital release date
This commit is contained in:
parent
ec7f7b085a
commit
669d87b7ef
@ -61,17 +61,14 @@ public bool IsRecentMovie
|
||||
{
|
||||
get
|
||||
{
|
||||
if (PhysicalRelease.HasValue)
|
||||
if ((PhysicalRelease.HasValue && PhysicalRelease.Value >= DateTime.UtcNow.AddDays(-21)) ||
|
||||
(DigitalRelease.HasValue && DigitalRelease.Value >= DateTime.UtcNow.AddDays(-21)) ||
|
||||
(InCinemas.HasValue && InCinemas.Value >= DateTime.UtcNow.AddDays(-120)))
|
||||
{
|
||||
return PhysicalRelease.Value >= DateTime.UtcNow.AddDays(-21);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (InCinemas.HasValue)
|
||||
{
|
||||
return InCinemas.Value >= DateTime.UtcNow.AddDays(-120);
|
||||
}
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user