mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
commit
f2817fef74
@ -539,21 +539,10 @@ namespace Emby.Server.Implementations.HttpClientManager
|
|||||||
|
|
||||||
var contentLength = GetContentLength(httpResponse);
|
var contentLength = GetContentLength(httpResponse);
|
||||||
|
|
||||||
if (contentLength.HasValue)
|
using (var stream = httpResponse.GetResponseStream())
|
||||||
|
using (var fs = _fileSystem.GetFileStream(tempFile, FileOpenMode.Create, FileAccessMode.Write, FileShareMode.Read, true))
|
||||||
{
|
{
|
||||||
using (var fs = _fileSystem.GetFileStream(tempFile, FileOpenMode.Create, FileAccessMode.Write, FileShareMode.Read, true))
|
await stream.CopyToAsync(fs, StreamDefaults.DefaultCopyToBufferSize, options.CancellationToken).ConfigureAwait(false);
|
||||||
{
|
|
||||||
await httpResponse.GetResponseStream().CopyToAsync(fs, StreamDefaults.DefaultCopyToBufferSize, options.CancellationToken).ConfigureAwait(false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// We're not able to track progress
|
|
||||||
using (var stream = httpResponse.GetResponseStream())
|
|
||||||
using (var fs = _fileSystem.GetFileStream(tempFile, FileOpenMode.Create, FileAccessMode.Write, FileShareMode.Read, true))
|
|
||||||
{
|
|
||||||
await stream.CopyToAsync(fs, StreamDefaults.DefaultCopyToBufferSize, options.CancellationToken).ConfigureAwait(false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
options.Progress.Report(100);
|
options.Progress.Report(100);
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
KZ-К,1
|
KZ-6-,0
|
||||||
KZ-БА,6
|
KZ-6+,6
|
||||||
KZ-Б14,7
|
KZ-12+,12
|
||||||
KZ-Е16,8
|
KZ-14+,14
|
||||||
KZ-Е18,10
|
KZ-16+,16
|
||||||
KZ-НА,15
|
KZ-18+,18
|
||||||
|
KZ-21+,21
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user