优化并发下载文件夹相同问题
This commit is contained in:
parent
dbc09f99cb
commit
983599b61f
|
@ -123,7 +123,7 @@ namespace N_m3u8DL_RE.DownloadManager
|
||||||
if (segments.Count() == 1) speedContainer.SingleSegment = true;
|
if (segments.Count() == 1) speedContainer.SingleSegment = true;
|
||||||
|
|
||||||
var type = streamSpec.MediaType ?? Common.Enum.MediaType.VIDEO;
|
var type = streamSpec.MediaType ?? Common.Enum.MediaType.VIDEO;
|
||||||
var dirName = $"{DownloaderConfig.MyOptions.SaveName ?? NowDateTime.ToString("yyyy-MM-dd_HH-mm-ss")}_{streamSpec.GroupId}_{streamSpec.Codecs}_{streamSpec.Bandwidth}_{streamSpec.Language}";
|
var dirName = $"{DownloaderConfig.MyOptions.SaveName ?? NowDateTime.ToString("yyyy-MM-dd_HH-mm-ss")}_{task.Id}_{streamSpec.GroupId}_{streamSpec.Codecs}_{streamSpec.Bandwidth}_{streamSpec.Language}";
|
||||||
//去除非法字符
|
//去除非法字符
|
||||||
dirName = ConvertUtil.GetValidFileName(dirName, filterSlash: true);
|
dirName = ConvertUtil.GetValidFileName(dirName, filterSlash: true);
|
||||||
var tmpDir = Path.Combine(DownloaderConfig.MyOptions.TmpDir ?? Environment.CurrentDirectory, dirName);
|
var tmpDir = Path.Combine(DownloaderConfig.MyOptions.TmpDir ?? Environment.CurrentDirectory, dirName);
|
||||||
|
|
Loading…
Reference in New Issue