mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 07:10:45 +00:00
Possible fix for MrMC
This commit is contained in:
parent
2638759b42
commit
675754bc5c
5 changed files with 48 additions and 45 deletions
|
|
@ -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 + "\"";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue