diff options
| author | Austin-Olacsi <138650713+Austin-Olacsi@users.noreply.github.com> | 2025-12-03 17:05:57 -0700 |
|---|---|---|
| committer | Bnyro <bnyro@tutanota.com> | 2025-12-07 23:34:16 +0100 |
| commit | 9d3ec9a2a2e914fb642ac43246814ccf78774f94 (patch) | |
| tree | b5339791c81724a8a4bd8d3bbbdfc6ac61338e8f /searx/engines/pixiv.py | |
| parent | 74ec225ad12cacd78dc33780f14e08b37b5ce748 (diff) | |
[feat] pixiv engine: add filter for AI generated images
Diffstat (limited to 'searx/engines/pixiv.py')
| -rw-r--r-- | searx/engines/pixiv.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/engines/pixiv.py b/searx/engines/pixiv.py index b1e7bf452..28ee8fa3a 100644 --- a/searx/engines/pixiv.py +++ b/searx/engines/pixiv.py @@ -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 |