We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1f6db5 commit 97c17ddCopy full SHA for 97c17dd
src/N_m3u8DL-RE/Program.cs
@@ -1,4 +1,4 @@
1
-using System.Globalization;
+using System.Globalization;
2
using N_m3u8DL_RE.Parser.Config;
3
using N_m3u8DL_RE.Common.Entity;
4
using N_m3u8DL_RE.Common.Enum;
@@ -267,7 +267,8 @@ await RetryUtil.WebRequestRetryAsync(async () =>
267
}
268
269
// 生成文件夹
270
- var tmpDir = Path.Combine(option.TmpDir ?? Environment.CurrentDirectory, $"{option.SaveName ?? DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss")}");
+ var baseDir = option.SaveDir ?? option.TmpDir ?? Environment.CurrentDirectory;
271
+ var tmpDir = Path.Combine(baseDir, $"{option.SaveName ?? DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss")}");
272
// 记录文件
273
if (option.WriteMetaJson)
274
{
0 commit comments