diff --git a/README.md b/README.md
index 0967f97..645f5c3 100644
--- a/README.md
+++ b/README.md
@@ -76,7 +76,7 @@ Usage: sldl [OPTIONS]
E.g: '1:' will only run the command if the file is
downloaded successfully. Prepend 's:' to use the system
shell to execute the command. Prepend 'a:' to run it only
- whenever an album downloads or fails.
+ on album downloads.
--print Print tracks or search results instead of downloading:
'tracks': Print all tracks to be downloaded
@@ -526,11 +526,11 @@ sldl https://www.youtube.com/playlist/id --get-deleted --yt-dlp
Print all songs by an artist which are not in your library:
```
-sldl "artist=MC MENTAL" --aggregate --skip-music-dir "path/to/music" --print results-full
+sldl "artist=MC MENTAL" -g --skip-music-dir "path/to/music" --print results-full
```
-Download all albums by an artist found on soulseek:
+Download all albums by an artist interactively:
```
sldl "artist=MC MENTAL" -a -g -t
```
diff --git a/slsk-batchdl/Config.cs b/slsk-batchdl/Config.cs
index d2b0fff..56d374a 100644
--- a/slsk-batchdl/Config.cs
+++ b/slsk-batchdl/Config.cs
@@ -124,8 +124,6 @@ public class Config
private string[] arguments;
bool hasConfiguredIndex = false;
bool confPathChanged = false;
- FileConditions? undoTempConds = null;
- FileConditions? undoTempPrefConds = null;
public Config(string[] args)
{
@@ -182,11 +180,6 @@ public class Config
copy.necessaryCond = new FileConditions(necessaryCond);
copy.preferredCond = new FileConditions(preferredCond);
- if (undoTempConds != null)
- copy.undoTempConds = new FileConditions(undoTempConds);
- if (undoTempPrefConds != null)
- copy.undoTempPrefConds = new FileConditions(undoTempPrefConds);
-
copy.regexToReplace = new Track(regexToReplace);
copy.regexReplaceBy = new Track(regexReplaceBy);
@@ -541,26 +534,6 @@ public class Config
}
- public void AddTemporaryConditions(FileConditions? cond, FileConditions? prefCond)
- {
- throw new NotImplementedException("Code has been refactored; probably does not work.");
- if (cond != null)
- undoTempConds = necessaryCond.AddConditions(cond);
- if (prefCond != null)
- undoTempPrefConds = preferredCond.AddConditions(prefCond);
- }
-
-
- public void RestoreConditions()
- {
- throw new NotImplementedException("Code has been refactored; probably does not work.");
- if (undoTempConds != null)
- necessaryCond.AddConditions(undoTempConds);
- if (undoTempPrefConds != null)
- preferredCond.AddConditions(undoTempPrefConds);
- }
-
-
public static FileConditions ParseConditions(string input, Track? track = null)
{
static void UpdateMinMax(string value, string condition, ref int? min, ref int? max)
diff --git a/slsk-batchdl/Help.cs b/slsk-batchdl/Help.cs
index 0757d66..6b82da0 100644
--- a/slsk-batchdl/Help.cs
+++ b/slsk-batchdl/Help.cs
@@ -52,7 +52,7 @@ public static class Help
E.g: '1:' will only run the command if the file is
downloaded successfully. Prepend 's:' to use the system
shell to execute the command. Prepend 'a:' to run it only
- whenever an album downloads or fails.
+ on album downloads.
--print Print tracks or search results instead of downloading:
'tracks': Print all tracks to be downloaded
diff --git a/slsk-batchdl/Program.cs b/slsk-batchdl/Program.cs
index 351662e..d9f0fef 100644
--- a/slsk-batchdl/Program.cs
+++ b/slsk-batchdl/Program.cs
@@ -1136,7 +1136,7 @@ static partial class Program
foreach (var (key, val) in searches)
{
if (val == null)
- searches.TryRemove(key, out _); // reminder: removing from a dict in a foreach is allowed in newer .net versions
+ searches.TryRemove(key, out _);
}
foreach (var (key, val) in downloads)