优化 #84
This commit is contained in:
parent
9cc077d885
commit
44cc97357f
|
@ -323,7 +323,7 @@ namespace N_m3u8DL_RE.DownloadManager
|
||||||
//校验分片数量
|
//校验分片数量
|
||||||
if (DownloaderConfig.MyOptions.CheckSegmentsCount && FileDic.Values.Any(s => s == null))
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -670,6 +670,8 @@ namespace N_m3u8DL_RE.DownloadManager
|
||||||
var task = kp.Value;
|
var task = kp.Value;
|
||||||
var result = await DownloadStreamAsync(kp.Key, task, SpeedContainerDic[task.Id]);
|
var result = await DownloadStreamAsync(kp.Key, task, SpeedContainerDic[task.Id]);
|
||||||
Results[kp.Key] = result;
|
Results[kp.Key] = result;
|
||||||
|
//失败不再下载后续
|
||||||
|
if (!result) break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue