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:
parent
c5806e5d24
commit
e1859ad899
1 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue