mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-26 12:05:04 +01:00
Fix ffprobe -user_agent parameter
The PR #10448 was doing it wrong and actually did not work. Even its unit testing was testing for a wrong output. Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
@@ -35,7 +35,7 @@ namespace Jellyfin.MediaEncoding.Tests.Probing
|
||||
Protocol = MediaProtocol.Http,
|
||||
RequiredHttpHeaders = new Dictionary<string, string>()
|
||||
{
|
||||
{ "user_agent", userAgent },
|
||||
{ "User-Agent", userAgent },
|
||||
}
|
||||
},
|
||||
ExtractChapters = false,
|
||||
@@ -44,7 +44,7 @@ namespace Jellyfin.MediaEncoding.Tests.Probing
|
||||
|
||||
var extraArg = encoder.GetExtraArguments(req);
|
||||
|
||||
Assert.Contains(userAgent, extraArg, StringComparison.InvariantCulture);
|
||||
Assert.Contains($"-user_agent \"{userAgent}\"", extraArg, StringComparison.InvariantCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user