mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-11-09 07:36:13 +00: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:
1 parent
730b01fb14
commit
d07ec4ad0f
2 files changed
+4
-4
No files matched your search
@@ -456,9 +456,9 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
extraArgs += " -probesize " + ffmpegProbeSize;
|
||||
}
|
||||
|
||||
if (request.MediaSource.RequiredHttpHeaders.TryGetValue("user_agent", out var userAgent))
|
||||
if (request.MediaSource.RequiredHttpHeaders.TryGetValue("User-Agent", out var userAgent))
|
||||
{
|
||||
extraArgs += " -user_agent " + userAgent;
|
||||
extraArgs += $" -user_agent \"{userAgent}\"";
|
||||
}
|
||||
|
||||
if (request.MediaSource.Protocol == MediaProtocol.Rtsp)
|
||||
|
||||
Reference in new issue
Block a user