small fixes

This commit is contained in:
Master Kwoth 2016-03-18 00:30:16 +01:00
parent 1b6ee5bd0a
commit 976e93df86
2 changed files with 2 additions and 3 deletions

View File

@ -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=order%3Arank+{tag.Replace(" ", "_")}";
link += $"&tags={tag.Replace(" ", "_")}";
var webpage = await GetResponseStringAsync(link);
var matches = Regex.Matches(webpage, "data-large-file-url=\"(?<id>.*?)\"");

View File

@ -144,7 +144,7 @@ namespace NadekoBot.Commands {
//get skill order data<API_KEY>
var orderArr = (data["skills"]["mostGames"]["order"] as JArray);
var img = Image.FromFile("data/lol/bg.png");
using (var g = Graphics.FromImage(img)) {
g.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
@ -182,7 +182,6 @@ namespace NadekoBot.Commands {
orderY += orderVerticalSpacing * 3;
break;
default:
orderY += orderVerticalSpacing * 3;
break;
}