From c639daabce9633e157d669bd72689371d5ae4312 Mon Sep 17 00:00:00 2001 From: fiso64 Date: Fri, 20 Dec 2024 23:56:44 +0100 Subject: [PATCH] commit --- README.md | 64 +-- publish.bat | 39 +- slsk-batchdl/Config.cs | 35 +- slsk-batchdl/Extractors/Csv.cs | 6 +- slsk-batchdl/Extractors/List.cs | 12 +- slsk-batchdl/Extractors/YouTube.cs | 4 +- slsk-batchdl/FileManager.cs | 4 +- slsk-batchdl/FileSkipper.cs | 84 +-- slsk-batchdl/Help.cs | 20 +- slsk-batchdl/M3uEditor.cs | 149 +++--- slsk-batchdl/Models/Track.cs | 2 +- slsk-batchdl/Models/TrackListEntry.cs | 17 + slsk-batchdl/Program.cs | 401 +++++++------- slsk-batchdl/Search.cs | 2 +- slsk-batchdl/Tests/Test.cs | 726 +++++++++++++------------- slsk-batchdl/Utilities/Printing.cs | 2 +- slsk-batchdl/Utilities/Utils.cs | 15 +- 17 files changed, 781 insertions(+), 801 deletions(-) diff --git a/README.md b/README.md index 3b5875a..0967f97 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ An automatic downloader for Soulseek built with Soulseek.NET. Accepts CSV files as well as Spotify and YouTube urls. Supports playlist and album downloads; selects the best files according to user-configured file conditions and heuristics. -See the usage [examples](#examples-1). +See the [usage examples](#examples-1). ## Index - [Options](#options) @@ -68,14 +68,15 @@ Usage: sldl [OPTIONS] --listen-port Port for incoming connections (default: 49998) --on-complete Run a command whenever a file is downloaded. - Available placeholders: {path} (local save path), {title}, + Available placeholders: {path} (local path),{title},{row} {artist},{album},{uri},{length},{failure-reason},{state}. Prepend a state number to only run in specific cases: 1:, 2:, 3:, 4: for the Downloaded, Failed, Exists, and NotFoundLastTime states respectively. 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. + shell to execute the command. Prepend 'a:' to run it only + whenever an album downloads or fails. --print