Skip to content

Commit 48838b4

Browse files
committed
Ignore case for ffprobe key search
1 parent 700e7c4 commit 48838b4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ff-utils-winforms/Media/GetVideoInfo.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,14 @@ public static async Task<string> GetFfprobeInfoAsync(string path, FfprobeMode mo
8080
{
8181
if (stripKeyName)
8282
{
83-
List<string> filtered = output.SplitIntoLines().Where(x => x.Contains(lineFilter)).ToList(); // Filter
83+
84+
List<string> filtered = output.SplitIntoLines().Where(x => x.ToLower().Contains(lineFilter.ToLower())).ToList(); // Filter
8485
filtered = filtered.Select(x => string.Join("", x.Split('=').Skip(1))).ToList(); // Ignore everything before (and including) the first '=' sign
8586
output = string.Join("\n", filtered);
8687
}
8788
else
8889
{
89-
output = string.Join("\n", output.SplitIntoLines().Where(x => x.Contains(lineFilter)).ToArray());
90+
output = string.Join("\n", output.SplitIntoLines().Where(x => x.ToLower().Contains(lineFilter.ToLower())).ToArray());
9091
}
9192
}
9293

0 commit comments

Comments
 (0)