From db48c406843a219e50103149acf1d977fcc1dcbd Mon Sep 17 00:00:00 2001 From: skuill Date: Mon, 18 Dec 2023 22:07:52 +0400 Subject: [PATCH] #17 Fixed comments --- LyricsScraperNET.Client/Program.cs | 7 +++---- LyricsScraperNET/Providers/LyricFind/LyricFindProvider.cs | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/LyricsScraperNET.Client/Program.cs b/LyricsScraperNET.Client/Program.cs index c58a80f..e520cbd 100644 --- a/LyricsScraperNET.Client/Program.cs +++ b/LyricsScraperNET.Client/Program.cs @@ -32,10 +32,9 @@ static async Task Main() //// How to configure for a certain external provider: //var result = ExampleWithCertainProvider(artistToSearch, songToSearch); - //// Checking if something was found. - //// May not be found in two cases: - //// 1) search errors can be found in the logs or in response fields like ResponseStatusCode and ResponseMessage. - //// 2) The requested song contains only the instrumental, no lyrics. In this case the flag will be true. + //// Checking that something was found. The response can be empty in two cases: + //// 1) A search error occurred. Detailed information can be found in the logs or in response fields like 'ResponseStatusCode' and 'ResponseMessage'. + //// 2) The requested song contains only the instrumental, no lyrics. In this case the flag 'Instrumental' will be true. if (result.IsEmpty()) { if (result.Instrumental) diff --git a/LyricsScraperNET/Providers/LyricFind/LyricFindProvider.cs b/LyricsScraperNET/Providers/LyricFind/LyricFindProvider.cs index b0a861e..e76b20b 100644 --- a/LyricsScraperNET/Providers/LyricFind/LyricFindProvider.cs +++ b/LyricsScraperNET/Providers/LyricFind/LyricFindProvider.cs @@ -162,7 +162,7 @@ private bool IsInstumentalLyric(string text) } /// - /// Try to find and return the fielad value as boolean. Pattern: "":. + /// Try to find and return the fielad value as boolean. Pattern: [:true(or false)]. /// In case if fieldName is not found returns false. /// private bool TryReturnBooleanFieldValue(string text, string fieldName)