jellyfin/MediaBrowser.Providers/Music/SoundtrackPostScanTask.cs
2014-02-23 22:27:13 -05:00

33 lines
921 B
C#

using MediaBrowser.Controller.Library;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Providers.Music
{
public class SoundtrackPostScanTask : ILibraryPostScanTask
{
private readonly ILibraryManager _libraryManager;
public SoundtrackPostScanTask(ILibraryManager libraryManager)
{
_libraryManager = libraryManager;
}
private readonly Task _cachedTask = Task.FromResult(true);
public Task Run(IProgress<double> progress, CancellationToken cancellationToken)
{
RunInternal(progress, cancellationToken);
return _cachedTask;
}
private void RunInternal(IProgress<double> progress, CancellationToken cancellationToken)
{
// Reimplement this when more kinds of associations are supported.
progress.Report(100);
}
}
}