From 1f46971f9a98a0764b7484c1ca84683c0eded8eb Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 7 Jun 2024 15:41:51 -0700 Subject: [PATCH] fixup! Fixed: Skip invalid series paths during validation --- src/NzbDrone.Core/Tv/MoveSeriesService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/NzbDrone.Core/Tv/MoveSeriesService.cs b/src/NzbDrone.Core/Tv/MoveSeriesService.cs index be9037d96..0a09eaac0 100644 --- a/src/NzbDrone.Core/Tv/MoveSeriesService.cs +++ b/src/NzbDrone.Core/Tv/MoveSeriesService.cs @@ -37,6 +37,12 @@ namespace NzbDrone.Core.Tv private void MoveSingleSeries(Series series, string sourcePath, string destinationPath, int? index = null, int? total = null) { + if (!sourcePath.IsPathValid(PathValidationType.CurrentOs)) + { + _logger.Warn("Folder '{0}' for '{1}' is invalid, unable to move series. Try moving files manually", sourcePath, series.Title); + return; + } + if (!_diskProvider.FolderExists(sourcePath)) { _logger.Debug("Folder '{0}' for '{1}' does not exist, not moving.", sourcePath, series.Title);