summaryrefslogtreecommitdiff
path: root/ATRI/plugins
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2022-12-12 16:11:20 +0800
committerKyomotoi <[email protected]>2022-12-12 16:11:20 +0800
commitbab91c7d65e5ba459bf24097125663c598ee99de (patch)
treec93e23d1094692bf4d6e60f499691c0faf1e61ab /ATRI/plugins
parent80083588a66fc1d91badafd3b9cb4b7cbdf99473 (diff)
downloadATRI-bab91c7d65e5ba459bf24097125663c598ee99de.tar.gz
ATRI-bab91c7d65e5ba459bf24097125663c598ee99de.tar.bz2
ATRI-bab91c7d65e5ba459bf24097125663c598ee99de.zip
🚑️ 修复 bug
Diffstat (limited to 'ATRI/plugins')
-rw-r--r--ATRI/plugins/setu/data_source.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ATRI/plugins/setu/data_source.py b/ATRI/plugins/setu/data_source.py
index 8a1a26d..59f511a 100644
--- a/ATRI/plugins/setu/data_source.py
+++ b/ATRI/plugins/setu/data_source.py
@@ -9,7 +9,7 @@ from .models import SetuInfo
from .nsfw_checker import detect_image, init_model
-__LOLICON_URL = "https://api.lolicon.app/setu/v2"
+_LOLICON_URL = "https://api.lolicon.app/setu/v2"
class Setu:
@@ -29,9 +29,9 @@ class Setu:
Returns:
Tuple[MessageSegment, dict]: 涩图本体, 涩图信息
"""
- url = __LOLICON_URL
+ url = _LOLICON_URL
if tag:
- url = __LOLICON_URL + f"?tag={tag}"
+ url = _LOLICON_URL + f"?tag={tag}"
try:
req = await request.get(url)
except Exception: