mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-17 10:58:58 -07:00
33 lines
921 B
C#
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);
|
|
}
|
|
}
|
|
}
|