mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-30 07:22:35 +01:00
Fix SeriesFolderAsRootFolderValidator
This commit is contained in:
parent
2926201694
commit
0ce81e1ab6
@ -31,7 +31,9 @@ namespace Sonarr.Api.V3.Series
|
|||||||
|
|
||||||
if (seriesFolder == rootFolder) return false;
|
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 New Issue
Block a user