From aef9147b1edd0caedc2c2f8c5aa4b002ea7e37ef Mon Sep 17 00:00:00 2001 From: fiso64 Date: Sun, 11 Aug 2024 16:53:11 +0200 Subject: [PATCH] big commit --- README.md | 718 ++-- publish.bat | 2 + slsk-batchdl/Config.cs | 1167 +++++++ slsk-batchdl/Data.cs | 324 ++ slsk-batchdl/Enums.cs | 89 + slsk-batchdl/ExistingChecker.cs | 351 ++ slsk-batchdl/Extractors/Bandcamp.cs | 109 + slsk-batchdl/Extractors/Csv.cs | 209 ++ slsk-batchdl/Extractors/Spotify.cs | 341 ++ slsk-batchdl/Extractors/String.cs | 169 + slsk-batchdl/Extractors/YouTube.cs | 675 ++++ slsk-batchdl/Extractors/_Extractor.cs | 36 + slsk-batchdl/FileConditions.cs | 296 ++ slsk-batchdl/Help.cs | 490 +++ slsk-batchdl/M3uEditor.cs | 299 ++ slsk-batchdl/Program.cs | 4560 +++---------------------- slsk-batchdl/SearchAndDownload.cs | 1338 ++++++++ slsk-batchdl/Spotify.cs | 220 -- slsk-batchdl/Utils.cs | 645 +++- slsk-batchdl/YouTube.cs | 610 ---- slsk-batchdl/slsk-batchdl.csproj | 20 +- 21 files changed, 7402 insertions(+), 5266 deletions(-) create mode 100644 slsk-batchdl/Config.cs create mode 100644 slsk-batchdl/Data.cs create mode 100644 slsk-batchdl/Enums.cs create mode 100644 slsk-batchdl/ExistingChecker.cs create mode 100644 slsk-batchdl/Extractors/Bandcamp.cs create mode 100644 slsk-batchdl/Extractors/Csv.cs create mode 100644 slsk-batchdl/Extractors/Spotify.cs create mode 100644 slsk-batchdl/Extractors/String.cs create mode 100644 slsk-batchdl/Extractors/YouTube.cs create mode 100644 slsk-batchdl/Extractors/_Extractor.cs create mode 100644 slsk-batchdl/FileConditions.cs create mode 100644 slsk-batchdl/Help.cs create mode 100644 slsk-batchdl/M3uEditor.cs create mode 100644 slsk-batchdl/SearchAndDownload.cs delete mode 100644 slsk-batchdl/Spotify.cs delete mode 100644 slsk-batchdl/YouTube.cs diff --git a/README.md b/README.md index 3cb9fc7..a1cc918 100644 --- a/README.md +++ b/README.md @@ -2,281 +2,529 @@ A batch downloader for Soulseek built with Soulseek.NET. Accepts CSV files and Spotify or YouTube urls. +## Index +- [slsk-batchdl](#slsk-batchdl) + - [Options](#options) + - [Input types](#input-types) + - [CSV file](#csv-file) + - [YouTube](#youtube) + - [Spotify](#spotify) + - [Bandcamp](#bandcamp) + - [Search string](#search-string) + - [Download modes](#download-modes) + - [Normal](#normal) + - [Album](#album) + - [Aggregate](#aggregate) + - [Album Aggregate](#album-aggregate) + - [Searching](#searching) + - [File conditions](#file-conditions) + - [Name format](#name-format) + - [Skip existing](#skip-existing) + - [Configuration](#configuration) + - [Examples](#examples-1) + - [Notes](#notes) + + +## Options + +``` +Usage: sldl [OPTIONS] + + Required Arguments + A url, search string, or path to a local CSV file. + Run --help "input" to view the accepted inputs. + Can also be passed with -i, --input + --user Soulseek username + --pass Soulseek password +``` +``` + General Options + -p, --path Download directory + -f, --folder Subfolder name. Set to '.' to output directly to --path + --input-type Force set input type, [csv|youtube|spotify|bandcamp|string] + --name-format Name format for downloaded tracks. See --help name-format + + -n, --number Download the first n tracks of a playlist + -o, --offset Skip a specified number of tracks + -r, --reverse Download tracks in reverse order + -c, --config Set config file location. Set to 'none' to ignore config + --profile Configuration profile to use. See --help "config". + --concurrent-downloads Max concurrent downloads (default: 2) + --m3u