mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-03 21:54:26 -04:00
simplify the if
This commit is contained in:
parent
8dc58e8f04
commit
a18b3fbe70
@ -5697,21 +5697,13 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
inputModifier = inputModifier.Trim();
|
inputModifier = inputModifier.Trim();
|
||||||
|
|
||||||
// Apply -probesize if configured
|
// Apply -probesize if configured
|
||||||
var probeSizeArgument = string.Empty;
|
|
||||||
var ffmpegProbeSize = _config.GetFFmpegProbeSize();
|
var ffmpegProbeSize = _config.GetFFmpegProbeSize();
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(ffmpegProbeSize))
|
if (!string.IsNullOrEmpty(ffmpegProbeSize))
|
||||||
{
|
{
|
||||||
probeSizeArgument = $"-probesize {probeSizeArgument}";
|
inputModifier += $" -probesize {ffmpegProbeSize}";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(probeSizeArgument))
|
|
||||||
{
|
|
||||||
inputModifier += $" {probeSizeArgument}";
|
|
||||||
}
|
|
||||||
|
|
||||||
inputModifier = inputModifier.Trim();
|
|
||||||
|
|
||||||
var userAgentParam = GetUserAgentParam(state);
|
var userAgentParam = GetUserAgentParam(state);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(userAgentParam))
|
if (!string.IsNullOrEmpty(userAgentParam))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user