解密后 检查文件大小

This commit is contained in:
nilaoda 2022-07-21 18:24:46 +08:00
parent 91cab2c7e3
commit c34fb94af4
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ namespace N_m3u8DL_RE.DownloadManager
RedirectStandardError = true, RedirectStandardError = true,
UseShellExecute = false UseShellExecute = false
})!.WaitForExitAsync(); })!.WaitForExitAsync();
if (File.Exists(dec)) if (File.Exists(dec) && new FileInfo(dec).Length > 0)
{ {
File.Delete(enc); File.Delete(enc);
output = dec; output = dec;