mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #11781 from Bond-009/orderts
Retain order blu-ray segments
This commit is contained in:
commit
2ddf2a7866
@ -1137,13 +1137,11 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||||||
var validPlaybackFiles = _blurayExaminer.GetDiscInfo(path).Files;
|
var validPlaybackFiles = _blurayExaminer.GetDiscInfo(path).Files;
|
||||||
|
|
||||||
// Get all files from the BDMV/STREAMING directory
|
// Get all files from the BDMV/STREAMING directory
|
||||||
var directoryFiles = _fileSystem.GetFiles(Path.Join(path, "BDMV", "STREAM"));
|
|
||||||
|
|
||||||
// Only return playable local .m2ts files
|
// Only return playable local .m2ts files
|
||||||
return directoryFiles
|
return validPlaybackFiles
|
||||||
.Where(f => validPlaybackFiles.Contains(f.Name, StringComparer.OrdinalIgnoreCase))
|
.Select(f => _fileSystem.GetFileInfo(Path.Join(path, "BDMV", "STREAM", f)))
|
||||||
|
.Where(f => f.Exists)
|
||||||
.Select(f => f.FullName)
|
.Select(f => f.FullName)
|
||||||
.Order()
|
|
||||||
.ToList();
|
.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user