Fixed: Change Refresh to Use StartTime

pull/3962/head
Qstick 5 years ago
parent da50b49e01
commit d4422e8901

@ -52,10 +52,13 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
public HashSet<int> GetChangedMovies (DateTime startTime)
{
var startDate = startTime.ToString("o");
var request = _movieBuilder.Create()
.SetSegment("route", "movie")
.SetSegment("id", "")
.SetSegment("secondaryRoute", "changes")
.AddQueryParam("start_date", startDate)
.Build();
request.AllowAutoRedirect = true;

@ -220,10 +220,9 @@ namespace NzbDrone.Core.Movies
var updatedTMDBMovies = new HashSet<int>();
if (message.LastExecutionTime.HasValue && message.LastExecutionTime.Value.AddDays(14) > DateTime.UtcNow)
if (message.LastStartTime.HasValue && message.LastStartTime.Value.AddDays(14) > DateTime.UtcNow)
{
// TODO: Should we add some overlap to ensure we get everything?
updatedTMDBMovies = _movieInfo.GetChangedMovies(message.LastExecutionTime.Value);
updatedTMDBMovies = _movieInfo.GetChangedMovies(message.LastStartTime.Value);
}
foreach (var movie in allMovie)

Loading…
Cancel
Save