1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00

Fixed: Move series logging a failure and a success message

This commit is contained in:
Mark McDowall 2019-01-09 18:09:55 -08:00
parent 6a489a0b8f
commit 7e33261ccc

View File

@ -54,6 +54,9 @@ private void MoveSingleSeries(Series series, string sourcePath, string destinati
try
{
_diskTransferService.TransferFolder(sourcePath, destinationPath, TransferMode.Move);
_logger.ProgressInfo("{0} moved successfully to {1}", series.Title, series.Path);
_eventAggregator.PublishEvent(new SeriesMovedEvent(series, sourcePath, destinationPath));
}
catch (IOException ex)
{
@ -61,10 +64,6 @@ private void MoveSingleSeries(Series series, string sourcePath, string destinati
RevertPath(series.Id, sourcePath);
}
_logger.ProgressInfo("{0} moved successfully to {1}", series.Title, series.Path);
_eventAggregator.PublishEvent(new SeriesMovedEvent(series, sourcePath, destinationPath));
}
private void RevertPath(int seriesId, string path)