解锁文件
This commit is contained in:
parent
96b58e9384
commit
acb8f62f97
|
@ -78,7 +78,7 @@ namespace N_m3u8DL_RE.DownloadManager
|
||||||
response.EnsureSuccessStatusCode();
|
response.EnsureSuccessStatusCode();
|
||||||
|
|
||||||
var output = Path.Combine(saveDir, saveName + ".ts");
|
var output = Path.Combine(saveDir, saveName + ".ts");
|
||||||
using var stream = new FileStream(output, FileMode.Create, FileAccess.Write, FileShare.None);
|
using var stream = new FileStream(output, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.Read);
|
||||||
using var responseStream = await response.Content.ReadAsStreamAsync(CancellationTokenSource.Token);
|
using var responseStream = await response.Content.ReadAsStreamAsync(CancellationTokenSource.Token);
|
||||||
var buffer = new byte[16 * 1024];
|
var buffer = new byte[16 * 1024];
|
||||||
var size = 0;
|
var size = 0;
|
||||||
|
|
Loading…
Reference in New Issue