jellyfin-server/MediaBrowser.Providers/Music/SoundtrackPostScanTask.cs

33 lines
921 B
C#
Raw Normal View History

2014-02-24 03:27:13 +00:00
using MediaBrowser.Controller.Library;
2013-08-30 23:55:17 +00:00
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;
}
2014-02-03 17:44:13 +00:00
private readonly Task _cachedTask = Task.FromResult(true);
2013-08-30 23:55:17 +00:00
public Task Run(IProgress<double> progress, CancellationToken cancellationToken)
{
RunInternal(progress, cancellationToken);
2014-02-03 17:44:13 +00:00
return _cachedTask;
2013-08-30 23:55:17 +00:00
}
private void RunInternal(IProgress<double> progress, CancellationToken cancellationToken)
{
2014-02-24 03:27:13 +00:00
// Reimplement this when more kinds of associations are supported.
2013-08-30 23:55:17 +00:00
progress.Report(100);
}
}
}