diff options
author | Kyomotoi <[email protected]> | 2022-12-28 15:44:12 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2022-12-28 15:44:12 +0800 |
commit | bb13b38f862d859007d1d37941f5b5c9d5f38cbc (patch) | |
tree | 22b388f14006adaf30757174ff302cfcfba103a8 /ATRI/plugins | |
parent | f197f55e4dadbb99b5ae60584af75e05c96725b2 (diff) | |
parent | ca1cc8619411aa191e39039a4d729b93e6b497b8 (diff) | |
download | ATRI-bb13b38f862d859007d1d37941f5b5c9d5f38cbc.tar.gz ATRI-bb13b38f862d859007d1d37941f5b5c9d5f38cbc.tar.bz2 ATRI-bb13b38f862d859007d1d37941f5b5c9d5f38cbc.zip |
Merge branch 'main' of https://github.com/Kyomotoi/ATRI
Diffstat (limited to 'ATRI/plugins')
-rw-r--r-- | ATRI/plugins/setu/data_source.py | 6 |
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: |