mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 15:55:25 +03:00
Possible fix for MrMC
This commit is contained in:
@@ -168,9 +168,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
/// <returns>System.String.</returns>
|
||||
public string GetUserAgentParam(EncodingJobInfo state)
|
||||
{
|
||||
state.RemoteHttpHeaders.TryGetValue("User-Agent", out string useragent);
|
||||
|
||||
if (!string.IsNullOrEmpty(useragent))
|
||||
if (state.RemoteHttpHeaders.TryGetValue("User-Agent", out string useragent))
|
||||
{
|
||||
return "-user_agent \"" + useragent + "\"";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user