mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-05 09:46:17 +00:00
beginning remote subtitle downloading
This commit is contained in:
@@ -52,6 +52,12 @@ namespace MediaBrowser.Common.Net
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the host.
|
||||
/// </summary>
|
||||
/// <value>The host.</value>
|
||||
public string Host { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the progress.
|
||||
/// </summary>
|
||||
@@ -76,8 +82,6 @@ namespace MediaBrowser.Common.Net
|
||||
public bool LogRequest { get; set; }
|
||||
|
||||
public bool LogErrorResponseBody { get; set; }
|
||||
|
||||
public HttpRequestCachePolicy CachePolicy { get; set; }
|
||||
|
||||
private string GetHeaderValue(string name)
|
||||
{
|
||||
@@ -96,17 +100,9 @@ namespace MediaBrowser.Common.Net
|
||||
EnableHttpCompression = true;
|
||||
BufferContent = true;
|
||||
|
||||
CachePolicy = HttpRequestCachePolicy.None;
|
||||
|
||||
RequestHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
LogRequest = true;
|
||||
}
|
||||
}
|
||||
|
||||
public enum HttpRequestCachePolicy
|
||||
{
|
||||
None = 1,
|
||||
Validate = 2
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user