[bug fix] When the environment is Linux/Unix, an exception will be thrown during the merge process due to incorrect paths

This commit is contained in:
cyclamenkde 2023-06-21 21:56:08 +08:00
parent 172f7b42c0
commit 558f53211d
1 changed files with 3 additions and 1 deletions

View File

@ -85,7 +85,9 @@ namespace N_m3u8DL_RE.Util
else else
div = 200; div = 200;
string outputName = Path.GetDirectoryName(files[0]) + "\\T"; var delimiter=OperatingSystem.IsWindows()?"\\T":"/T";
string outputName = Path.GetDirectoryName(files[0]) + delimiter;
int index = 0; //序号 int index = 0; //序号
//按照div的容量分割为小数组 //按照div的容量分割为小数组