From acb8f62f9773bc927c04dec763df8c765922e617 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Thu, 17 Nov 2022 00:06:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E9=94=81=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/DownloadManager/HTTPLiveRecordManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/N_m3u8DL-RE/DownloadManager/HTTPLiveRecordManager.cs b/src/N_m3u8DL-RE/DownloadManager/HTTPLiveRecordManager.cs index a2b9bb3..b8623d4 100644 --- a/src/N_m3u8DL-RE/DownloadManager/HTTPLiveRecordManager.cs +++ b/src/N_m3u8DL-RE/DownloadManager/HTTPLiveRecordManager.cs @@ -78,7 +78,7 @@ namespace N_m3u8DL_RE.DownloadManager response.EnsureSuccessStatusCode(); 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); var buffer = new byte[16 * 1024]; var size = 0;