解锁文件

This commit is contained in:
nilaoda 2022-11-17 00:06:03 +08:00
parent 96b58e9384
commit acb8f62f97
1 changed files with 1 additions and 1 deletions

View File

@ -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;