public void PerformOrganization(MovieFileOrganizationRequest request) { var organizer = new MovieFileOrganizer(this, _config, _fileSystem, _logger, _libraryManager, _libraryMonitor, _providerManager); var options = GetAutoOrganizeOptions(); var result = organizer.OrganizeWithCorrection(request, options.MovieOptions, CancellationToken.None); }
/// <inheritdoc/> public async Task PerformOrganization(MovieFileOrganizationRequest request) { var organizer = new MovieFileOrganizer(this, _fileSystem, _logger, _libraryManager, _libraryMonitor, _providerManager); var options = _config.GetAutoOrganizeOptions(); var result = await organizer.OrganizeWithCorrection(request, options.MovieOptions, CancellationToken.None).ConfigureAwait(false); if (result.Status != FileSortingStatus.Success) { throw new Exception(result.StatusMessage); } }