mirror of https://github.com/lidarr/Lidarr
Fixed: Skip move when source and destination are the same
Co-authored-by: Qstick <qstick@gmail.com>
This commit is contained in:
parent
7820bcf91f
commit
c1926f8758
|
@ -1,6 +1,7 @@
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using NLog;
|
using NLog;
|
||||||
using NzbDrone.Common.Disk;
|
using NzbDrone.Common.Disk;
|
||||||
|
using NzbDrone.Common.Extensions;
|
||||||
using NzbDrone.Common.Instrumentation.Extensions;
|
using NzbDrone.Common.Instrumentation.Extensions;
|
||||||
using NzbDrone.Core.MediaFiles;
|
using NzbDrone.Core.MediaFiles;
|
||||||
using NzbDrone.Core.Messaging.Commands;
|
using NzbDrone.Core.Messaging.Commands;
|
||||||
|
@ -56,6 +57,12 @@ namespace NzbDrone.Core.Music
|
||||||
{
|
{
|
||||||
_logger.ProgressInfo("Moving {0} from '{1}' to '{2}'", artist.Name, sourcePath, destinationPath);
|
_logger.ProgressInfo("Moving {0} from '{1}' to '{2}'", artist.Name, sourcePath, destinationPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sourcePath.PathEquals(destinationPath))
|
||||||
|
{
|
||||||
|
_logger.ProgressInfo("{0} is already in the specified location '{1}'.", artist, destinationPath);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in New Issue