mirror of
https://github.com/fiso64/slsk-batchdl.git
synced 2024-12-22 14:32:40 +00:00
commit
This commit is contained in:
parent
c639daabce
commit
ed12ea9cc5
4 changed files with 5 additions and 32 deletions
|
@ -76,7 +76,7 @@ Usage: sldl <input> [OPTIONS]
|
||||||
E.g: '1:<cmd>' will only run the command if the file is
|
E.g: '1:<cmd>' will only run the command if the file is
|
||||||
downloaded successfully. Prepend 's:' to use the system
|
downloaded successfully. Prepend 's:' to use the system
|
||||||
shell to execute the command. Prepend 'a:' to run it only
|
shell to execute the command. Prepend 'a:' to run it only
|
||||||
whenever an album downloads or fails.
|
on album downloads.
|
||||||
|
|
||||||
--print <option> Print tracks or search results instead of downloading:
|
--print <option> Print tracks or search results instead of downloading:
|
||||||
'tracks': Print all tracks to be downloaded
|
'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:
|
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
|
||||||
```
|
```
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
Download all albums by an artist found on soulseek:
|
Download all albums by an artist interactively:
|
||||||
```
|
```
|
||||||
sldl "artist=MC MENTAL" -a -g -t
|
sldl "artist=MC MENTAL" -a -g -t
|
||||||
```
|
```
|
||||||
|
|
|
@ -124,8 +124,6 @@ public class Config
|
||||||
private string[] arguments;
|
private string[] arguments;
|
||||||
bool hasConfiguredIndex = false;
|
bool hasConfiguredIndex = false;
|
||||||
bool confPathChanged = false;
|
bool confPathChanged = false;
|
||||||
FileConditions? undoTempConds = null;
|
|
||||||
FileConditions? undoTempPrefConds = null;
|
|
||||||
|
|
||||||
public Config(string[] args)
|
public Config(string[] args)
|
||||||
{
|
{
|
||||||
|
@ -182,11 +180,6 @@ public class Config
|
||||||
copy.necessaryCond = new FileConditions(necessaryCond);
|
copy.necessaryCond = new FileConditions(necessaryCond);
|
||||||
copy.preferredCond = new FileConditions(preferredCond);
|
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.regexToReplace = new Track(regexToReplace);
|
||||||
copy.regexReplaceBy = new Track(regexReplaceBy);
|
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)
|
public static FileConditions ParseConditions(string input, Track? track = null)
|
||||||
{
|
{
|
||||||
static void UpdateMinMax(string value, string condition, ref int? min, ref int? max)
|
static void UpdateMinMax(string value, string condition, ref int? min, ref int? max)
|
||||||
|
|
|
@ -52,7 +52,7 @@ public static class Help
|
||||||
E.g: '1:<cmd>' will only run the command if the file is
|
E.g: '1:<cmd>' will only run the command if the file is
|
||||||
downloaded successfully. Prepend 's:' to use the system
|
downloaded successfully. Prepend 's:' to use the system
|
||||||
shell to execute the command. Prepend 'a:' to run it only
|
shell to execute the command. Prepend 'a:' to run it only
|
||||||
whenever an album downloads or fails.
|
on album downloads.
|
||||||
|
|
||||||
--print <option> Print tracks or search results instead of downloading:
|
--print <option> Print tracks or search results instead of downloading:
|
||||||
'tracks': Print all tracks to be downloaded
|
'tracks': Print all tracks to be downloaded
|
||||||
|
|
|
@ -1136,7 +1136,7 @@ static partial class Program
|
||||||
foreach (var (key, val) in searches)
|
foreach (var (key, val) in searches)
|
||||||
{
|
{
|
||||||
if (val == null)
|
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)
|
foreach (var (key, val) in downloads)
|
||||||
|
|
Loading…
Reference in a new issue