restrict person updates to 14 days

pull/702/head
Luke Pulverenti 11 years ago
parent 2a44efaa42
commit 22b8c830fd

@ -93,6 +93,12 @@ namespace MediaBrowser.Providers.Movies
{
var lastUpdateDate = new DateTime(lastUpdateTicks, DateTimeKind.Utc);
// They only allow up to 14 days of updates
if ((DateTime.UtcNow - lastUpdateDate).TotalDays > 13)
{
lastUpdateDate = DateTime.UtcNow.AddDays(-13);
}
var updatedIds = await GetIdsToUpdate(lastUpdateDate, 1, cancellationToken).ConfigureAwait(false);
var existingDictionary = existingDirectories.ToDictionary(i => i, StringComparer.OrdinalIgnoreCase);

Loading…
Cancel
Save