mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Usings https in gelbooru
This commit is contained in:
@@ -18,8 +18,13 @@ public class GelbooruImageDownloader : ImageDownloader<DapiImageObject>
|
|||||||
CancellationToken cancel = default)
|
CancellationToken cancel = default)
|
||||||
{
|
{
|
||||||
var tagString = ImageDownloaderHelper.GetTagString(tags, isExplicit);
|
var tagString = ImageDownloaderHelper.GetTagString(tags, isExplicit);
|
||||||
var uri =
|
var uri = $"https://gelbooru.com/index.php?page=dapi"
|
||||||
$"http://gelbooru.com/index.php?page=dapi&s=post&json=1&q=index&limit=100&tags={tagString}&pid={page}";
|
+ $"&s=post"
|
||||||
|
+ $"&json=1"
|
||||||
|
+ $"&q=index"
|
||||||
|
+ $"&limit=100"
|
||||||
|
+ $"&tags={tagString}"
|
||||||
|
+ $"&pid={page}";
|
||||||
using var req = new HttpRequestMessage(HttpMethod.Get, uri);
|
using var req = new HttpRequestMessage(HttpMethod.Get, uri);
|
||||||
using var res = await _http.SendAsync(req, cancel);
|
using var res = await _http.SendAsync(req, cancel);
|
||||||
res.EnsureSuccessStatusCode();
|
res.EnsureSuccessStatusCode();
|
||||||
|
Reference in New Issue
Block a user