shorten image task delay

This commit is contained in:
Luke Pulverenti
2013-05-18 17:47:50 -04:00
parent 99959f5d10
commit 3fc0b768d1
4 changed files with 13 additions and 12 deletions

View File

@@ -33,7 +33,7 @@ namespace MediaBrowser.Server.Implementations.ScheduledTasks
private readonly List<Video> _newlyAddedItems = new List<Video>();
private const int NewItemDelay = 300000;
private const int NewItemDelay = 60000;
/// <summary>
/// The current new item timer
@@ -95,7 +95,7 @@ namespace MediaBrowser.Server.Implementations.ScheduledTasks
foreach (var item in newItems
.Where(i => i.LocationType == LocationType.FileSystem && string.IsNullOrEmpty(i.PrimaryImagePath) && i.MediaStreams.Any(m => m.Type == MediaStreamType.Video))
.Take(5))
.Take(1))
{
try
{