fixup! Fixed: Skip invalid series paths during validation

This commit is contained in:
Mark McDowall 2024-06-07 15:41:51 -07:00
parent d5b131cacd
commit 1f46971f9a
1 changed files with 6 additions and 0 deletions

View File

@ -37,6 +37,12 @@ namespace NzbDrone.Core.Tv
private void MoveSingleSeries(Series series, string sourcePath, string destinationPath, int? index = null, int? total = null) 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)) if (!_diskProvider.FolderExists(sourcePath))
{ {
_logger.Debug("Folder '{0}' for '{1}' does not exist, not moving.", sourcePath, series.Title); _logger.Debug("Folder '{0}' for '{1}' does not exist, not moving.", sourcePath, series.Title);