From e103cff6bd23bdde6ccfbc7d0f9cc17be7daa4fc Mon Sep 17 00:00:00 2001 From: fiso64 Date: Thu, 25 May 2023 22:20:51 +0200 Subject: [PATCH] fbguxi --- README.md | 4 ++++ slsk-batchdl/Program.cs | 2 +- slsk-batchdl/Properties/launchSettings.json | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 27c00f1..4ebc2f4 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,9 @@ Options: --yt-id-col Youtube video ID column (only needed if length-col or yt-desc-col don't exist). Use with --yt-parse. --yt-parse Enable if you have a csv file of YouTube video titles and channel names; attempt to parse. + -s --single Search & download a specific track + -a --album Does nothing + --pref-format Preferred file format (default: mp3) --pref-length-tol Preferred length tolerance (if length col provided) (default: 3) --pref-min-bitrate Preferred minimum bitrate (default: 200) @@ -93,3 +96,4 @@ Supports .conf files: Create a file named `slsk-batchdl.conf` in the same direct - YouTube playlist downloading is unreliable since there are no track name / artist tags - The CSV file must be saved with `,` as field delimiter and `"` as string delimiter, encoded with UTF8 - 40% of the code was written by ChatGPT +- Sometimes it starts vomiting text in the terminal (I don't know why), use --slow-output if that's an issue. diff --git a/slsk-batchdl/Program.cs b/slsk-batchdl/Program.cs index 371913e..9d6fe15 100644 --- a/slsk-batchdl/Program.cs +++ b/slsk-batchdl/Program.cs @@ -162,7 +162,7 @@ class Program MaxSampleRate = -1, }; - string confPath = Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "slsk-batchdl.conf"); + string confPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "slsk-batchdl.conf"); if (System.IO.File.Exists(confPath)) { string confArgs = System.IO.File.ReadAllText(confPath); diff --git a/slsk-batchdl/Properties/launchSettings.json b/slsk-batchdl/Properties/launchSettings.json index 8467749..a06b1b1 100644 --- a/slsk-batchdl/Properties/launchSettings.json +++ b/slsk-batchdl/Properties/launchSettings.json @@ -1,7 +1,8 @@ { "profiles": { "slsk-batchdl": { - "commandName": "Project" + "commandName": "Project", + "commandLineArgs": "-s \"nanoray mimicloq\"" }, "YouTube": { "commandName": "Project",