From 352ec9a562479bd5391a4657e3a44ded2fb65b82 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Thu, 6 Jan 2022 21:05:55 +0100 Subject: [PATCH] Usings https in gelbooru --- .../Nsfw/_Common/Downloaders/GelbooruImageDownloader.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Nsfw/_Common/Downloaders/GelbooruImageDownloader.cs b/src/NadekoBot/Modules/Nsfw/_Common/Downloaders/GelbooruImageDownloader.cs index 09622dc31..a8c3d2833 100644 --- a/src/NadekoBot/Modules/Nsfw/_Common/Downloaders/GelbooruImageDownloader.cs +++ b/src/NadekoBot/Modules/Nsfw/_Common/Downloaders/GelbooruImageDownloader.cs @@ -18,8 +18,13 @@ public class GelbooruImageDownloader : ImageDownloader CancellationToken cancel = default) { var tagString = ImageDownloaderHelper.GetTagString(tags, isExplicit); - var uri = - $"http://gelbooru.com/index.php?page=dapi&s=post&json=1&q=index&limit=100&tags={tagString}&pid={page}"; + var uri = $"https://gelbooru.com/index.php?page=dapi" + + $"&s=post" + + $"&json=1" + + $"&q=index" + + $"&limit=100" + + $"&tags={tagString}" + + $"&pid={page}"; using var req = new HttpRequestMessage(HttpMethod.Get, uri); using var res = await _http.SendAsync(req, cancel); res.EnsureSuccessStatusCode();