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;