mirror of
https://github.com/Sonarr/Sonarr
synced 2026-04-21 04:32:01 +02:00
Fix SeriesFolderAsRootFolderValidator
This commit is contained in:
parent
2926201694
commit
0ce81e1ab6
1 changed files with 3 additions and 1 deletions
|
|
@ -31,7 +31,9 @@ protected override bool IsValid(PropertyValidatorContext context)
|
|||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue