From c1926f8758cdb222fd7861ff591a2943c36e729b Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sat, 20 Apr 2024 17:56:04 +0300 Subject: [PATCH] Fixed: Skip move when source and destination are the same Co-authored-by: Qstick --- src/NzbDrone.Core/Music/Services/MoveArtistService.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/NzbDrone.Core/Music/Services/MoveArtistService.cs b/src/NzbDrone.Core/Music/Services/MoveArtistService.cs index e0b847f4b..1b2c3e60c 100644 --- a/src/NzbDrone.Core/Music/Services/MoveArtistService.cs +++ b/src/NzbDrone.Core/Music/Services/MoveArtistService.cs @@ -1,6 +1,7 @@ using System.IO; using NLog; using NzbDrone.Common.Disk; +using NzbDrone.Common.Extensions; using NzbDrone.Common.Instrumentation.Extensions; using NzbDrone.Core.MediaFiles; 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); } + + if (sourcePath.PathEquals(destinationPath)) + { + _logger.ProgressInfo("{0} is already in the specified location '{1}'.", artist, destinationPath); + return; + } } try