separate task buttons script

This commit is contained in:
Luke Pulverenti
2015-01-20 16:32:48 -05:00
parent 449485d3d2
commit 9e809b06c4
6 changed files with 35 additions and 6 deletions

View File

@@ -54,10 +54,13 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
return _config.GetAutoOrganizeOptions().TvOptions;
}
public Task Execute(CancellationToken cancellationToken, IProgress<double> progress)
public async Task Execute(CancellationToken cancellationToken, IProgress<double> progress)
{
return new TvFolderOrganizer(_libraryManager, _logger, _fileSystem, _libraryMonitor, _organizationService, _config, _providerManager)
.Organize(GetTvOptions(), cancellationToken, progress);
if (GetTvOptions().IsEnabled)
{
await new TvFolderOrganizer(_libraryManager, _logger, _fileSystem, _libraryMonitor, _organizationService, _config, _providerManager)
.Organize(GetTvOptions(), cancellationToken, progress).ConfigureAwait(false);
}
}
public IEnumerable<ITaskTrigger> GetDefaultTriggers()

View File

@@ -47,7 +47,7 @@
"LabelDashboardSourcePath": "Web client source path:",
"LabelDashboardSourcePathHelp": "If running the server from source, specify the path to the dashboard-ui folder. All web client files will be served from this location.",
"ButtonConvertMedia": "Convert media",
"ButtonOrganizeNow": "Organize now",
"ButtonOrganize": "Organize",
"ButtonOk": "Ok",
"ButtonCancel": "Cancel",
"ButtonNew": "New",