mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 09:18:27 -04:00
Usings https in gelbooru
This commit is contained in:
@@ -18,8 +18,13 @@ public class GelbooruImageDownloader : ImageDownloader<DapiImageObject>
|
||||
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();
|
||||
|
Reference in New Issue
Block a user