Update SimpleDownloadManager.cs

This commit is contained in:
nilaoda 2022-08-03 18:57:24 +08:00
parent fac6aa9843
commit 9864b2560e
1 changed files with 0 additions and 2 deletions

View File

@ -48,8 +48,6 @@ namespace N_m3u8DL_RE.DownloadManager
var tmpDir = Path.Combine(DownloaderConfig.TmpDir ?? Environment.CurrentDirectory, dirName);
var saveDir = DownloaderConfig.SaveDir ?? Environment.CurrentDirectory;
var saveName = DownloaderConfig.SaveName != null ? $"{DownloaderConfig.SaveName}.{type}.{streamSpec.Language}".TrimEnd('.') : dirName;
//去除非法字符
dirName = ConvertUtil.GetValidFileName(dirName, filterSlash: true);
var headers = DownloaderConfig.Headers;
var output = Path.Combine(saveDir, saveName + $".{streamSpec.Extension ?? "ts"}");
//检测目标文件是否存在