mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-08 23:00:51 +02:00
supply user agent when direct recording
This commit is contained in:
parent
a1acc0c161
commit
be390433dd
|
@ -34,7 +34,13 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
|
||||||
var httpRequestOptions = new HttpRequestOptions
|
var httpRequestOptions = new HttpRequestOptions
|
||||||
{
|
{
|
||||||
Url = mediaSource.Path,
|
Url = mediaSource.Path,
|
||||||
BufferContent = false
|
BufferContent = false,
|
||||||
|
|
||||||
|
// Some remote urls will expect a user agent to be supplied
|
||||||
|
UserAgent = "Emby/3.0",
|
||||||
|
|
||||||
|
// Shouldn't matter but may cause issues
|
||||||
|
EnableHttpCompression = false
|
||||||
};
|
};
|
||||||
|
|
||||||
using (var response = await _httpClient.SendAsync(httpRequestOptions, "GET").ConfigureAwait(false))
|
using (var response = await _httpClient.SendAsync(httpRequestOptions, "GET").ConfigureAwait(false))
|
||||||
|
|
Loading…
Reference in a new issue