From cc3bb440bb2844d7e680bcbe54bdd3c848ca80b5 Mon Sep 17 00:00:00 2001 From: fiso64 Date: Fri, 6 Sep 2024 18:29:31 +0200 Subject: [PATCH] update readme --- README.md | 7 +++++-- slsk-batchdl/Help.cs | 11 +++++++---- slsk-batchdl/Search.cs | 4 ++-- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c0f585f..ede96d0 100644 --- a/README.md +++ b/README.md @@ -305,8 +305,11 @@ Input String | Artist | Title | Album | Lengt ### List A path to a text file where each line has the following form: ``` -"some input" "conditions" "preferred conditions" -"album=Album" "format=mp3; br > 128" "br >= 320" +"some input" "conditions" "preferred conditions" +``` +e.g: +``` +"artist=Artist, album=Album" "format=mp3; br > 128" "br >= 320" ``` Where "some input" is any of the above input types. The quotes can be omitted if the field contains no spaces. The conditions and preferred conditions fields are added on top of the diff --git a/slsk-batchdl/Help.cs b/slsk-batchdl/Help.cs index 277ba94..fb4c0b3 100644 --- a/slsk-batchdl/Help.cs +++ b/slsk-batchdl/Help.cs @@ -270,10 +270,13 @@ public static class Help List A path to a text file where each line has the following form: - - ""some input"" ""conditions"" ""preferred conditions"" - ""album=Album"" ""format=mp3; br > 128"" ""br >= 320"" - + + ""some input"" ""conditions"" ""preferred conditions"" + + e.g: + + ""artist=Artist, album=Album"" ""format=mp3; br > 128"" ""br >= 320"" + Where ""some input"" is any of the above input types. The quotes can be omitted if the field contains no spaces. The conditions and preferred conditions fields are added on top of the configured conditions and can also be omitted. List input must be manually activated with diff --git a/slsk-batchdl/Search.cs b/slsk-batchdl/Search.cs index 68296d8..88e1bcb 100644 --- a/slsk-batchdl/Search.cs +++ b/slsk-batchdl/Search.cs @@ -165,6 +165,8 @@ static class Search } catch (Exception e) { + Printing.WriteLine($"Error: Download Error: {e}", ConsoleColor.DarkYellow, debugOnly: true); + chosenFile = null; saveFilePath = ""; downloading = 0; @@ -172,8 +174,6 @@ static class Search if (!IsConnectedAndLoggedIn()) throw; - Printing.WriteLine("Error: Download Error: " + e.Message, ConsoleColor.DarkYellow, debugOnly: true); - userSuccessCount.AddOrUpdate(response.Username, -1, (k, v) => v - 1); if (--trackTries <= 0) {