1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-01-03 13:45:02 +00:00

Fixed: Ignore case when importing extra files

This commit is contained in:
Mark McDowall 2017-06-26 22:25:10 -07:00
parent ff6841e410
commit cf8b9df5ad
No known key found for this signature in database
GPG key ID: D4CEFA9A718052E0

View file

@ -71,7 +71,7 @@ namespace NzbDrone.Core.Extras
.Select(e => e.Trim(' ', '.'))
.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)
{