From ce01440ee3a8aaf4790c6411ea6dad46fcbd1a75 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Tue, 15 Mar 2016 17:50:28 +0100 Subject: [PATCH] cloess #30 , this is the best i can do to improve search. --- NadekoBot/Classes/SearchHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NadekoBot/Classes/SearchHelper.cs b/NadekoBot/Classes/SearchHelper.cs index c7bf18dc..9fc69b9a 100644 --- a/NadekoBot/Classes/SearchHelper.cs +++ b/NadekoBot/Classes/SearchHelper.cs @@ -187,7 +187,7 @@ namespace NadekoBot.Classes { var link = $"http://danbooru.donmai.us/posts?" + $"page={rng.Next(0, 15)}"; if (!string.IsNullOrWhiteSpace(tag)) - link += $"&tags={tag.Replace(" ", "_")}"; + link += $"&tags=order%3Arank+{tag.Replace(" ", "_")}"; var webpage = await GetResponseStringAsync(link); var matches = Regex.Matches(webpage, "data-large-file-url=\"(?.*?)\"");