1
0
Fork 0
mirror of https://github.com/fiso64/slsk-batchdl.git synced 2024-12-22 22:42:41 +00:00

config fix

This commit is contained in:
fiso64 2024-06-03 07:13:02 +02:00
parent c5806e5d24
commit e1859ad899

View file

@ -3843,6 +3843,9 @@ static class Program
if (arg.StartsWith('=')) if (arg.StartsWith('='))
arg = arg.Substring(1).TrimStart(); arg = arg.Substring(1).TrimStart();
if (arg.Length > 0 && arg[0] == '"' && arg[arg.Length - 1] == '"')
arg = arg.Substring(1, arg.Length - 2);
if (arg == "false") continue; if (arg == "false") continue;
if (!opt.StartsWith('-')) if (!opt.StartsWith('-'))
@ -3854,13 +3857,9 @@ static class Program
} }
res.Add(opt); res.Add(opt);
if (arg.Length > 0 && arg != "true") if (arg.Length > 0 && arg != "true")
{
if (arg[0] == '"' && arg[arg.Length - 1] == '"')
arg = arg.Substring(1, arg.Length - 2);
res.Add(arg); res.Add(arg);
}
} }
return res; return res;
} }