mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
parent
c05e8088d6
commit
d6f3ca859e
@ -139,10 +139,8 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||||||
|
|
||||||
var required = codec == Codec.Encoder ? requiredEncoders : requiredDecoders;
|
var required = codec == Codec.Encoder ? requiredEncoders : requiredDecoders;
|
||||||
|
|
||||||
Regex regex = new Regex(@"\s\S{6}\s(?<codec>[\w|-]+)\s{3}");
|
Regex regex = new Regex(@"^\s\S{6}\s(?<codec>[\w|-]+)\s+.+$", RegexOptions.Multiline);
|
||||||
|
|
||||||
MatchCollection matches = regex.Matches(output);
|
MatchCollection matches = regex.Matches(output);
|
||||||
|
|
||||||
var found = matches.Cast<Match>()
|
var found = matches.Cast<Match>()
|
||||||
.Select(x => x.Groups["codec"].Value)
|
.Select(x => x.Groups["codec"].Value)
|
||||||
.Where(x => required.Contains(x));
|
.Where(x => required.Contains(x));
|
||||||
|
Loading…
Reference in New Issue
Block a user