Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update demo.py #319

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ def appapi_search(aapi):
novel = json_result.novels[0]
print(">>> {}, origin url: {}".format(novel.title, novel.image_urls["large"]))

json_result = aapi.search_illust("AI生成", search_target="exact_match_for_tags", search_ai_type=0)
# 关闭AI搜索选项后,将过滤掉所有illust_ai_type=2的插画,而illust_ai_type=1 or 0 的插画将被保留
# 但是,加入了"AI生成"的tag却没有在作品提交时打开“AI生成”的开关的作品不会被筛选出结果列表
print(json_result["illusts"][0])


def appapi_user_search(aapi):
json_result = aapi.illust_ranking("day_male")
Expand Down
Loading