|
|
|
@ -985,76 +985,6 @@ namespace MediaBrowser.Server.Implementations.Library
|
|
|
|
|
return new PeopleValidator(this, _logger, ConfigurationManager).ValidatePeople(cancellationToken, progress);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Validates the artists.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <param name="progress">The progress.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
public Task ValidateArtists(CancellationToken cancellationToken, IProgress<double> progress)
|
|
|
|
|
{
|
|
|
|
|
// Ensure the location is unavailable.
|
|
|
|
|
Directory.CreateDirectory(ArtistsPath);
|
|
|
|
|
|
|
|
|
|
return new ArtistsValidator(this, _userManager, _logger).Run(progress, cancellationToken);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Validates the music genres.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <param name="progress">The progress.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
public Task ValidateMusicGenres(CancellationToken cancellationToken, IProgress<double> progress)
|
|
|
|
|
{
|
|
|
|
|
// Ensure the location is unavailable.
|
|
|
|
|
Directory.CreateDirectory(ConfigurationManager.ApplicationPaths.MusicGenrePath);
|
|
|
|
|
|
|
|
|
|
return new MusicGenresValidator(this, _logger).Run(progress, cancellationToken);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Validates the game genres.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <param name="progress">The progress.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
public Task ValidateGameGenres(CancellationToken cancellationToken, IProgress<double> progress)
|
|
|
|
|
{
|
|
|
|
|
// Ensure the location is unavailable.
|
|
|
|
|
Directory.CreateDirectory(ConfigurationManager.ApplicationPaths.GameGenrePath);
|
|
|
|
|
|
|
|
|
|
return new GameGenresValidator(this, _userManager, _logger).Run(progress, cancellationToken);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Validates the studios.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <param name="progress">The progress.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
public Task ValidateStudios(CancellationToken cancellationToken, IProgress<double> progress)
|
|
|
|
|
{
|
|
|
|
|
// Ensure the location is unavailable.
|
|
|
|
|
Directory.CreateDirectory(ConfigurationManager.ApplicationPaths.StudioPath);
|
|
|
|
|
|
|
|
|
|
return new StudiosValidator(this, _userManager, _logger).Run(progress, cancellationToken);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Validates the genres.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <param name="progress">The progress.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
|
public Task ValidateGenres(CancellationToken cancellationToken, IProgress<double> progress)
|
|
|
|
|
{
|
|
|
|
|
// Ensure the location is unavailable.
|
|
|
|
|
Directory.CreateDirectory(ConfigurationManager.ApplicationPaths.GenrePath);
|
|
|
|
|
|
|
|
|
|
return new GenresValidator(this, _userManager, _logger).Run(progress, cancellationToken);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Reloads the root media folder
|
|
|
|
|
/// </summary>
|
|
|
|
|