mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Fixed: MoveArtist logging a failure and a success message
This commit is contained in:
parent
42e9027216
commit
f827ba418c
1 changed files with 3 additions and 4 deletions
|
@ -54,6 +54,9 @@ namespace NzbDrone.Core.Music
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_diskTransferService.TransferFolder(sourcePath, destinationPath, TransferMode.Move);
|
_diskTransferService.TransferFolder(sourcePath, destinationPath, TransferMode.Move);
|
||||||
|
_logger.ProgressInfo("{0} moved successfully to {1}", artist.Name, artist.Path);
|
||||||
|
|
||||||
|
_eventAggregator.PublishEvent(new ArtistMovedEvent(artist, sourcePath, destinationPath));
|
||||||
}
|
}
|
||||||
catch (IOException ex)
|
catch (IOException ex)
|
||||||
{
|
{
|
||||||
|
@ -61,10 +64,6 @@ namespace NzbDrone.Core.Music
|
||||||
|
|
||||||
RevertPath(artist.Id, sourcePath);
|
RevertPath(artist.Id, sourcePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
_logger.ProgressInfo("{0} moved successfully to {1}", artist.Name, artist.Path);
|
|
||||||
|
|
||||||
_eventAggregator.PublishEvent(new ArtistMovedEvent(artist, sourcePath, destinationPath));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void RevertPath(int artistId, string path)
|
private void RevertPath(int artistId, string path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue