From 7760248e6b87cb2315d5ec5585baa834a7bc3324 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 29 Jun 2019 21:44:43 -0400 Subject: [PATCH] Fixed: Adjust how often info is refreshed for old movies --- src/NzbDrone.Core/Movies/ShouldRefreshMovie.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/NzbDrone.Core/Movies/ShouldRefreshMovie.cs b/src/NzbDrone.Core/Movies/ShouldRefreshMovie.cs index 817d407ad..ea2dd652c 100644 --- a/src/NzbDrone.Core/Movies/ShouldRefreshMovie.cs +++ b/src/NzbDrone.Core/Movies/ShouldRefreshMovie.cs @@ -21,21 +21,21 @@ namespace NzbDrone.Core.Movies public bool ShouldRefresh(Movie movie) { //return false; - if (movie.LastInfoSync < DateTime.UtcNow.AddDays(-30)) + if (movie.LastInfoSync < DateTime.UtcNow.AddDays(-180)) { - _logger.Trace("Movie {0} last updated more than 30 days ago, should refresh.", movie.Title); + _logger.Trace("Movie {0} last updated more than 180 days ago, should refresh.", movie.Title); return true; } - if (movie.LastInfoSync >= DateTime.UtcNow.AddHours(-6)) + if (movie.LastInfoSync >= DateTime.UtcNow.AddHours(-12)) { - _logger.Trace("Movie {0} last updated less than 6 hours ago, should not be refreshed.", movie.Title); + _logger.Trace("Movie {0} last updated less than 12 hours ago, should not be refreshed.", movie.Title); return false; } if (movie.Status == MovieStatusType.Announced || movie.Status == MovieStatusType.InCinemas) { - _logger.Trace("Movie {0} is announced or in cinemas, should refresh.", movie.Title); //We probably have to change this. + _logger.Trace("Movie {0} is announced or in cinemas, should refresh.", movie.Title); return true; }