mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 17:57:43 +00:00
Fixed: Move series logging a failure and a success message
This commit is contained in:
parent
6a489a0b8f
commit
7e33261ccc
1 changed files with 3 additions and 4 deletions
|
@ -54,6 +54,9 @@ namespace NzbDrone.Core.Tv
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_diskTransferService.TransferFolder(sourcePath, destinationPath, TransferMode.Move);
|
_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)
|
catch (IOException ex)
|
||||||
{
|
{
|
||||||
|
@ -61,10 +64,6 @@ namespace NzbDrone.Core.Tv
|
||||||
|
|
||||||
RevertPath(series.Id, sourcePath);
|
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)
|
private void RevertPath(int seriesId, string path)
|
||||||
|
|
Loading…
Reference in a new issue