[feat] pixiv engine: add filter for AI generated images

This commit is contained in:
Austin-Olacsi
2025-12-03 17:05:57 -07:00
committed by Bnyro
parent 74ec225ad1
commit 9d3ec9a2a2
2 changed files with 5 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ about = {
# Engine configuration
paging = True
categories = ['images']
remove_ai_images = False
# Search URL
base_url = "https://www.pixiv.net/ajax/search/illustrations"
@@ -34,6 +35,9 @@ def request(query, params):
"lang": "en",
}
if remove_ai_images is True:
query_params.update({"ai_type": 1})
params["url"] = f"{base_url}/{query}?{urlencode(query_params)}"
return params

View File

@@ -1622,6 +1622,7 @@ engines:
engine: pixiv
disabled: true
inactive: true
remove_ai_images: false
pixiv_image_proxies:
- https://pximg.example.org
# A proxy is required to load the images. Hosting an image proxy server