Skip to content

Commit

Permalink
config fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fiso64 committed Jun 3, 2024
1 parent c5806e5 commit e1859ad
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions slsk-batchdl/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3843,6 +3843,9 @@ static List<string> ParseConfig(string path)
if (arg.StartsWith('='))
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 (!opt.StartsWith('-'))
Expand All @@ -3854,13 +3857,9 @@ static List<string> ParseConfig(string path)
}

res.Add(opt);

if (arg.Length > 0 && arg != "true")
{
if (arg[0] == '"' && arg[arg.Length - 1] == '"')
arg = arg.Substring(1, arg.Length - 2);
res.Add(arg);
}
}
return res;
}
Expand Down

0 comments on commit e1859ad

Please sign in to comment.