Fixed: Ignore case when importing extra files

pull/2005/head
Mark McDowall 7 years ago
parent ff6841e410
commit cf8b9df5ad
No known key found for this signature in database
GPG Key ID: D4CEFA9A718052E0

@ -71,7 +71,7 @@ namespace NzbDrone.Core.Extras
.Select(e => e.Trim(' ', '.')) .Select(e => e.Trim(' ', '.'))
.ToList(); .ToList();
var matchingFilenames = files.Where(f => Path.GetFileNameWithoutExtension(f).StartsWith(sourceFileName)); var matchingFilenames = files.Where(f => Path.GetFileNameWithoutExtension(f).StartsWith(sourceFileName, StringComparison.InvariantCultureIgnoreCase));
foreach (var matchingFilename in matchingFilenames) foreach (var matchingFilename in matchingFilenames)
{ {

Loading…
Cancel
Save