Added common language enum. Fixed "romaji" spelling. More UI updates.
This commit is contained in:
@@ -23,12 +23,15 @@ public partial class NatoMangaClient(IHttpService httpService) : INatoMangaClien
|
||||
{
|
||||
string url = GetSearchUrl(searchWord);
|
||||
|
||||
string response = await httpService.GetStringAsync(url, cancellationToken);
|
||||
Dictionary<string,string> requestHeader = [];
|
||||
requestHeader.Add("Referer", "https://www.natomanga.com/");
|
||||
|
||||
string response = await httpService.GetStringAsync(url, requestHeader, cancellationToken);
|
||||
|
||||
return JsonSerializer.Deserialize<NatoMangaSearchResult[]>(response, _jsonSerializerOptions) ?? [];
|
||||
}
|
||||
|
||||
protected string GetSearchUrl(string searchWord)
|
||||
protected static string GetSearchUrl(string searchWord)
|
||||
{
|
||||
string formattedSeachWord = GetFormattedSearchWord(searchWord);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user