mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Order files before creating concat config
This commit is contained in:
parent
f34c56282d
commit
52c79c050b
@ -1111,6 +1111,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
return allVobs
|
||||
.Where(vob => titles.Contains(_fileSystem.GetFileNameWithoutExtension(vob).AsSpan().RightPart('_').ToString()))
|
||||
.Select(i => i.FullName)
|
||||
.Order()
|
||||
.ToList();
|
||||
}
|
||||
|
||||
@ -1127,6 +1128,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
return directoryFiles
|
||||
.Where(f => validPlaybackFiles.Contains(f.Name, StringComparer.OrdinalIgnoreCase))
|
||||
.Select(f => f.FullName)
|
||||
.Order()
|
||||
.ToList();
|
||||
}
|
||||
|
||||
@ -1150,8 +1152,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
}
|
||||
|
||||
// Generate concat configuration entries for each file and write to file
|
||||
using (StreamWriter sw = new StreamWriter(concatFilePath))
|
||||
{
|
||||
using StreamWriter sw = new StreamWriter(concatFilePath);
|
||||
foreach (var path in files)
|
||||
{
|
||||
var mediaInfoResult = GetMediaInfo(
|
||||
@ -1176,7 +1177,6 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
sw.WriteLine("duration {0}", duration);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool CanExtractSubtitles(string codec)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user