Notes

AstrBot / Pixiv / Scheduling

Pixiv Random Candidate Retry Notes

A note on continuing random-search pagination after filtering removes initial candidates.

The tricky part of Pixiv random search is that API results are not the same as sendable results. Quality thresholds, AI-work display settings, R18 rules, delivery cache, and message count limits can all remove candidates after the request succeeds.

The update makes candidate compensation clearer: when too few sendable items remain, the plugin keeps requesting later pages until it finds usable content or reaches the retry limit. Logs also separate API-empty results, condition filtering, and cache filtering, making it easier to decide whether to adjust tags, thresholds, or retry depth.