small fixes
This commit is contained in:
parent
1b6ee5bd0a
commit
976e93df86
@ -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=order%3Arank+{tag.Replace(" ", "_")}";
|
link += $"&tags={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>.*?)\"");
|
||||||
|
@ -182,7 +182,6 @@ namespace NadekoBot.Commands {
|
|||||||
orderY += orderVerticalSpacing * 3;
|
orderY += orderVerticalSpacing * 3;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
orderY += orderVerticalSpacing * 3;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user