From 44cc97357fa2e9d14382a83b0684c68467c77903 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Mon, 19 Dec 2022 15:08:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20#84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs b/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs index addc7ff..eef2469 100644 --- a/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs +++ b/src/N_m3u8DL-RE/DownloadManager/SimpleDownloadManager.cs @@ -323,7 +323,7 @@ namespace N_m3u8DL_RE.DownloadManager //校验分片数量 if (DownloaderConfig.MyOptions.CheckSegmentsCount && FileDic.Values.Any(s => s == null)) { - Logger.WarnMarkUp(ResString.segmentCountCheckNotPass, totalCount, FileDic.Values.Where(s => s != null).Count()); + Logger.ErrorMarkUp(ResString.segmentCountCheckNotPass, totalCount, FileDic.Values.Where(s => s != null).Count()); return false; } @@ -670,6 +670,8 @@ namespace N_m3u8DL_RE.DownloadManager var task = kp.Value; var result = await DownloadStreamAsync(kp.Key, task, SpeedContainerDic[task.Id]); Results[kp.Key] = result; + //失败不再下载后续 + if (!result) break; } } else