[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-22 14:37:05 +08:00
parent 558f53211d
commit a1bfcec878
1 changed files with 1 additions and 3 deletions

View File

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