2023-03-24 23:42:01 +00:00
# slsk-batchdl
2023-03-28 21:16:10 +00:00
A batch downloader for Soulseek using Soulseek.NET. Accepts CSV files, Spotify & YouTube urls.
2023-03-24 23:42:01 +00:00
```
Usage: slsk-batchdl.exe [OPTIONS]
Options:
2023-03-26 15:35:41 +00:00
-p --parent < path > Downloaded music will be placed here
-n --name < name > Folder / playlist name. If not specified, the name of the csv file / spotify playlist is used.
2023-03-24 23:42:01 +00:00
--username < username > Soulseek username
--password < password > Soulseek password
2023-03-25 22:10:38 +00:00
2023-03-28 21:16:10 +00:00
--spotify < url > Download a spotify playlist. "likes" to download all your liked music.
2023-03-27 22:40:57 +00:00
--spotify-id < id > Your spotify client id (use if the default fails or if playlist private)
--spotify-secret < sec > Your spotify client secret (use if the default fails or if playlist private)
2023-03-26 15:35:41 +00:00
2023-03-28 21:16:10 +00:00
--youtube < url > Download YouTube playlist
2023-03-26 15:35:41 +00:00
--csv < path > Use a csv file containing track info to download
2023-03-24 23:42:01 +00:00
--artist-col < column > Specify if the csv file contains an artist name column
--track-col < column > Specify if if the csv file contains an track name column
2023-03-28 21:16:10 +00:00
--album-col < unit > CSV album column name. Optional, may improve searching, slower
2023-03-25 14:41:35 +00:00
--full-title-col < column > Specify only if there are no separate artist and track name columns in the csv
--uploader-col < column > Specify when using full title col if there is also an uploader column in the csv (fallback in case artist name cannot be extracted from title)
2023-03-27 22:40:57 +00:00
--length-col < column > CSV duration column name. Recommended, will improve accuracy
2023-03-24 23:42:01 +00:00
--time-unit < unit > Time unit for the track duration column, ms or s (default: s)
2023-03-25 22:10:38 +00:00
2023-03-24 23:42:01 +00:00
--pref-format < format > Preferred file format (default: mp3)
--pref-length-tolerance < tol > Preferred length tolerance (if length col provided) (default: 3)
--pref-min-bitrate < rate > Preferred minimum bitrate (default: 200)
--pref-max-bitrate < rate > Preferred maximum bitrate (default: 2200)
--pref-max-sample-rate < rate > Preferred maximum sample rate (default: 96000)
--nec-format < format > Necessary file format
--nec-length-tolerance < tol > Necessary length tolerance (default: 3)
--nec-min-bitrate < rate > Necessary minimum bitrate
--nec-max-bitrate < rate > Necessary maximum bitrate
--nec-max-sample-rate < rate > Necessary maximum sample rate
2023-03-25 22:10:38 +00:00
2023-03-28 21:16:10 +00:00
--album-search Also search for "[Album name] [track name]". Occasionally helps to find more
2023-03-26 15:35:41 +00:00
--skip-existing Skip if a track matching the conditions is found in the output folder or your music library (if provided)
--music-dir < path > Specify to also skip downloading tracks which are in your library, use with --skip-existing
2023-03-28 21:16:10 +00:00
--reverse Download tracks in reverse order
2023-03-26 15:35:41 +00:00
--skip-if-pref-failed Skip if preferred versions of a track exist but failed to download. If no pref. versions were found, download as normal.
--create-m3u Create an m3u playlist file
--m3u-only Only create an m3u playlist file with existing tracks and exit
--m3u < path > Where to place created m3u files (--parent by default)
2023-03-27 22:40:57 +00:00
--yt-dlp Use yt-dlp to download tracks that weren't found on Soulseek. yt-dlp must be availble from the command line.
--yt-dlp-f < format > yt-dlp audio format (default: "bestaudio/best")
2023-03-26 15:35:41 +00:00
2023-03-25 22:10:38 +00:00
--search-timeout < timeout > Maximal search time (default: 15000)
--download-max-stale-time < time > Maximal download time with no progress (default: 80000)
--max-concurrent-processes < num > Max concurrent searches / downloads (default: 2)
--max-retries-per-file < num > Maximum number of users to try downloading from before skipping track (default: 30)
2023-03-24 23:42:01 +00:00
```
- Files satisfying `pref` conditions will be preferred. Files not satisfying `nec` conditions will not be downloaded.
2023-03-26 15:35:41 +00:00
- When using csv, provide either both a track-col and artist-col (ideally), or full-title-col in case separate artist and track names are unavailable. You can also specify --uploader-col (channel names) in that case to use as artist names whenever full-title-col doesn't contain them. Always provide a length-col or get wrong results
2023-03-24 23:42:01 +00:00
2023-03-26 15:35:41 +00:00
Download tracks from a csv file and create m3u:
```
slsk-batchdl.exe -p "C:\Users\fiso64\Music\Playlists" --csv "C:\Users\fiso64\Downloads\test.csv" --username "fakename" --password "fakepass" --artist-col "Artist Name(s)" --track-col "Track Name" --length-col "Duration (ms)" --time-unit "ms" --skip-existing --create-m3u --pref-format "flac"
```
2023-03-27 22:40:57 +00:00
Download spotify playlist with fallback to yt-dlp and create a m3u:
2023-03-24 23:42:01 +00:00
```
2023-03-27 22:40:57 +00:00
slsk-batchdl.exe --spotify < url > -p "C:\Users\fiso64\Music\Playlists" --m3u "C:\Users\fiso64\Documents\MusicBee\Playlists" --music-dir "C:\Users\fiso64\Music" --username "fakename" --password "fakepass" --skip-existing --pref-format "flac" --yt-dlp
2023-03-24 23:42:01 +00:00
```
2023-03-27 22:40:57 +00:00
You might need to provide an id and secret when using spotify (which you can get here https://developer.spotify.com/dashboard/applications, under "Create an app").
2023-03-24 23:42:01 +00:00
## Notes:
2023-03-28 21:16:10 +00:00
- YouTube playlist downloading is bad: There is no way of reliably parsing video information into artist & track name. Also, many videos may be unavailable (or unavailable specifically through the api, for reasons that are beyond me), in which case they won't be downloaded.
2023-03-24 23:42:01 +00:00
- The console output tends to break after a while
- Much of the code was written by ChatGPT