1
0
Fork 0
mirror of https://github.com/fiso64/slsk-batchdl.git synced 2024-12-31 18:52:41 +00:00
This commit is contained in:
fiso64 2024-05-05 00:30:13 +02:00
parent 498badbd9a
commit fb28fbdcd2

View file

@ -627,6 +627,9 @@ static class Program
case "--pref-max-samplerate": case "--pref-max-samplerate":
preferredCond.MaxSampleRate = int.Parse(args[++i]); preferredCond.MaxSampleRate = int.Parse(args[++i]);
break; break;
case "--pref-min-samplerate":
preferredCond.MinSampleRate = int.Parse(args[++i]);
break;
case "--pref-danger-words": case "--pref-danger-words":
preferredCond.DangerWords = args[++i].Split(','); preferredCond.DangerWords = args[++i].Split(',');
break; break;
@ -639,6 +642,12 @@ static class Program
case "--pref-banned-users": case "--pref-banned-users":
preferredCond.BannedUsers = args[++i].Split(','); preferredCond.BannedUsers = args[++i].Split(',');
break; break;
case "--pref-min-bitdepth":
preferredCond.MinBitDepth = int.Parse(args[++i]);
break;
case "--pref-max-bitdepth":
preferredCond.MaxBitDepth = int.Parse(args[++i]);
break;
case "--format": case "--format":
necessaryCond.Formats = args[++i].Split(',', StringSplitOptions.TrimEntries); necessaryCond.Formats = args[++i].Split(',', StringSplitOptions.TrimEntries);
break; break;
@ -654,6 +663,15 @@ static class Program
case "--max-samplerate": case "--max-samplerate":
necessaryCond.MaxSampleRate = int.Parse(args[++i]); necessaryCond.MaxSampleRate = int.Parse(args[++i]);
break; break;
case "--min-samplerate":
necessaryCond.MinSampleRate = int.Parse(args[++i]);
break;
case "--min-bitdepth":
necessaryCond.MinBitDepth = int.Parse(args[++i]);
break;
case "--max-bitdepth":
necessaryCond.MaxBitDepth = int.Parse(args[++i]);
break;
case "--danger-words": case "--danger-words":
necessaryCond.DangerWords = args[++i].Split(','); necessaryCond.DangerWords = args[++i].Split(',');
break; break;