mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
32 lines
921 B
C#
32 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);
|
|
}
|
|
}
|
|
}
|