From 56839edb0ca06a4cd65649742f2cbed08cf61e62 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Fri, 21 Jul 2023 16:23:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B7=B3=E8=BF=87=E5=B7=B2?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6=E5=90=8E=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/Downloader/SimpleDownloader.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/N_m3u8DL-RE/Downloader/SimpleDownloader.cs b/src/N_m3u8DL-RE/Downloader/SimpleDownloader.cs index 3076aa8..3233cd1 100644 --- a/src/N_m3u8DL-RE/Downloader/SimpleDownloader.cs +++ b/src/N_m3u8DL-RE/Downloader/SimpleDownloader.cs @@ -88,6 +88,7 @@ namespace N_m3u8DL_RE.Downloader //已下载跳过 if (File.Exists(des)) { + speedContainer.Add(new FileInfo(des).Length); return new DownloadResult() { ActualContentLength = 0, ActualFilePath = des }; } @@ -95,6 +96,7 @@ namespace N_m3u8DL_RE.Downloader var dec = Path.Combine(Path.GetDirectoryName(des)!, Path.GetFileNameWithoutExtension(des) + "_dec" + Path.GetExtension(des)); if (File.Exists(dec)) { + speedContainer.Add(new FileInfo(dec).Length); return new DownloadResult() { ActualContentLength = 0, ActualFilePath = dec }; }