cloess #30 , this is the best i can do to improve search.

This commit is contained in:
Master Kwoth 2016-03-15 17:50:28 +01:00
parent d25690c83b
commit ce01440ee3

View File

@ -187,7 +187,7 @@ namespace NadekoBot.Classes {
var link = $"http://danbooru.donmai.us/posts?" + var link = $"http://danbooru.donmai.us/posts?" +
$"page={rng.Next(0, 15)}"; $"page={rng.Next(0, 15)}";
if (!string.IsNullOrWhiteSpace(tag)) if (!string.IsNullOrWhiteSpace(tag))
link += $"&tags={tag.Replace(" ", "_")}"; link += $"&tags=order%3Arank+{tag.Replace(" ", "_")}";
var webpage = await GetResponseStringAsync(link); var webpage = await GetResponseStringAsync(link);
var matches = Regex.Matches(webpage, "data-large-file-url=\"(?<id>.*?)\""); var matches = Regex.Matches(webpage, "data-large-file-url=\"(?<id>.*?)\"");