From c34fb94af4fb852c0d44a508fba5f6323dc1c839 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Thu, 21 Jul 2022 18:24:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=AF=86=E5=90=8E=20=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E6=96=87=E4=BB=B6=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs b/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs index 390cb2f..2153837 100644 --- a/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs +++ b/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs @@ -336,7 +336,7 @@ namespace N_m3u8DL_RE.DownloadManager RedirectStandardError = true, UseShellExecute = false })!.WaitForExitAsync(); - if (File.Exists(dec)) + if (File.Exists(dec) && new FileInfo(dec).Length > 0) { File.Delete(enc); output = dec;