默认保存文件名增加时间前缀

This commit is contained in:
nilaoda 2022-07-16 23:33:58 +08:00
parent e25b0d27dc
commit 1f3acf8636
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ namespace N_m3u8DL_RE.DownloadManager
var segments = streamSpec.Playlist?.MediaParts.SelectMany(m => m.MediaSegments);
if (segments == null) return false;
var dirName = $"{streamSpec.GroupId}_{streamSpec.Codecs}_{streamSpec.Language}";
var dirName = $"{DateTime.Now:yyyy-MM-dd_HH-mm-ss}_{streamSpec.GroupId}_{streamSpec.Codecs}_{streamSpec.Language}";
var tmpDir = DownloaderConfig.TmpDir ?? Path.Combine(Environment.CurrentDirectory, dirName);
var saveDir = DownloaderConfig.SaveDir ?? Environment.CurrentDirectory;
var saveName = DownloaderConfig.SaveName ?? dirName;