1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-10-30 07:22:35 +01:00

Fix SeriesFolderAsRootFolderValidator

This commit is contained in:
Mark McDowall 2019-08-04 08:38:36 -07:00
parent 2926201694
commit 0ce81e1ab6

View File

@ -31,7 +31,9 @@ namespace Sonarr.Api.V3.Series
if (seriesFolder == rootFolder) return false;
return seriesFolder.LevenshteinDistance(rootFolder) <= Math.Max(1, seriesFolder.Length * 0.2);
var distance = seriesFolder.LevenshteinDistance(rootFolder);
return distance >= Math.Max(1, seriesFolder.Length * 0.2);
}
}
}