From c897b3c59888e8d9525e12aa784e254acdca7b85 Mon Sep 17 00:00:00 2001 From: blank X Date: Thu, 24 Dec 2020 23:00:38 +0700 Subject: [PATCH] SyntaxError --- sukuinote/plugins/saucenao.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sukuinote/plugins/saucenao.py b/sukuinote/plugins/saucenao.py index 7a3f2b1..3925a6e 100644 --- a/sukuinote/plugins/saucenao.py +++ b/sukuinote/plugins/saucenao.py @@ -75,7 +75,7 @@ async def saucenao(client, message): parsed = urlparse(url) qs = parse_qs(parsed.query) if qs.get('illust_id'): - async with session.get(f'https://www.pixiv.net/touch/ajax/illust/details?illust_id={urlencode(qs["illust_id"][0])}', headers={'Accept': 'application/json') as resp: + async with session.get(f'https://www.pixiv.net/touch/ajax/illust/details?illust_id={urlencode(qs["illust_id"][0])}', headers={'Accept': 'application/json'}) as resp: json = await resp.json() for i in ('url_big', 'url', 'url_s', 'url_placeholder', 'url_ss'): pimg = json['body']['illust_details'].get(i)