From bc03b53ee8a2646774e7873c95a022181228e984 Mon Sep 17 00:00:00 2001 From: wty <163.wty@163.com> Date: Sun, 13 Mar 2022 00:32:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8B=E8=BD=BD=E5=90=8E?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E8=BF=9B=E5=85=A5=E4=B8=8B=E8=BD=BD=E9=9F=B3?= =?UTF-8?q?=E9=A2=91=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DownKyi/Services/Download/AriaDownloadService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/DownKyi/Services/Download/AriaDownloadService.cs b/src/DownKyi/Services/Download/AriaDownloadService.cs index c768fad..a972b7e 100644 --- a/src/DownKyi/Services/Download/AriaDownloadService.cs +++ b/src/DownKyi/Services/Download/AriaDownloadService.cs @@ -147,15 +147,15 @@ namespace DownKyi.Services.Download // 老版本数据库没有这一项,会变成null if (downloading.Downloading.DownloadedFiles == null) downloading.Downloading.DownloadedFiles = new List(); - // 还要检查一下文件有没有被人删掉,删掉的话重新下载 - // 如果下载视频之后音频文件被人删了。此时gid还是视频的,会下错文件 - if (downloading.Downloading.DownloadedFiles.Contains(key) && File.Exists(Path.Combine(path, fileName))) - return Path.Combine(path, fileName); if (downloading.Downloading.DownloadFiles.ContainsKey(key)) { // 如果存在,表示下载过, // 则继续使用上次下载的文件名 fileName = downloading.Downloading.DownloadFiles[key]; + // 还要检查一下文件有没有被人删掉,删掉的话重新下载 + // 如果下载视频之后音频文件被人删了。此时gid还是视频的,会下错文件 + if (downloading.Downloading.DownloadedFiles.Contains(key) && File.Exists(Path.Combine(path, fileName))) + return Path.Combine(path, fileName); } else {