mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Backport pull request #12065 from jellyfin/release-10.9.z
Make m2ts extension case-insensitive Original-merge: f2a5ccf10206218e1084ee53aaa7284b7be3ddec Merged-by: Bond-009 <bond.009@outlook.com> Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
91f5f0bfc4
commit
7d438a748f
@ -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…
x
Reference in New Issue
Block a user