Make m2ts extension case-insensitive
This commit is contained in:
parent
b25d6d1e48
commit
fcec1fcc4d
|
@ -1155,10 +1155,10 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||||
|
|
||||||
// Get all files from the BDMV/STREAMING directory
|
// Get all files from the BDMV/STREAMING directory
|
||||||
// Only return playable local .m2ts files
|
// Only return playable local .m2ts files
|
||||||
|
var files = _fileSystem.GetFiles(Path.Join(path, "BDMV", "STREAM")).ToList();
|
||||||
return validPlaybackFiles
|
return validPlaybackFiles
|
||||||
.Select(f => _fileSystem.GetFileInfo(Path.Join(path, "BDMV", "STREAM", f)))
|
.Select(validFile => files.FirstOrDefault(f => Path.GetFileName(f.FullName.AsSpan()).Equals(validFile, StringComparison.OrdinalIgnoreCase))?.FullName)
|
||||||
.Where(f => f.Exists)
|
.Where(f => f is not null)
|
||||||
.Select(f => f.FullName)
|
|
||||||
.ToList();
|
.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user