update translations

This commit is contained in:
Luke Pulverenti
2014-08-29 08:14:41 -04:00
parent 7dc9c2b77f
commit 6a9dbf6ae8
63 changed files with 2702 additions and 2467 deletions

View File

@@ -24,6 +24,9 @@ namespace MediaBrowser.Server.Implementations.HttpServer
private long RangeLength { get; set; }
private long TotalContentLength { get; set; }
public bool Throttle { get; set; }
public long ThrottleLimit { get; set; }
/// <summary>
/// The _options
/// </summary>
@@ -159,6 +162,13 @@ namespace MediaBrowser.Server.Implementations.HttpServer
/// <param name="responseStream">The response stream.</param>
public void WriteTo(Stream responseStream)
{
if (Throttle)
{
responseStream = new ThrottledStream(responseStream, ThrottleLimit)
{
MinThrottlePosition = ThrottleLimit * 180
};
}
var task = WriteToAsync(responseStream);
Task.WaitAll(task);