mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-02-21 12:02:46 +00:00
restrict person updates to 14 days
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user