The purge asked appdetails about every game, 5.3 hours at 9,847, and one answer was enough to remove one - appdetails has answered success:false for live games in bursts (2026-09-27). GetItems now screens the whole catalogue in a few minutes (unknown, hidden, unlisted, coming soon, not is_free; never type), and check_game_health() must confirm each flag; "unavailable" is asked again five minutes later. A failed batch or a network error never reads as gone, blocklisted games are not asked about, and more than 500 flags or 100 removals stops the run before anything is written. Removals are logged as before. A notice names earlier removals Steam has since undone. The dry run on the real catalogue: 8 flagged, 3 removed (the three unlisted games), 5 kept because appdetails calls them free. Daily now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
555 B
Bash
Executable File
13 lines
555 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
pip install --quiet --require-hashes --only-binary :all: -r requirements.txt
|
|
# PURGE_DRY_RUN is the manual run's "dry run" box: screen and confirm, remove nothing.
|
|
# A guard that trips (too many flagged or confirmed) exits non-zero before
|
|
# anything is written, so set -e stops here and nothing is committed.
|
|
if [[ "${PURGE_DRY_RUN:-}" == "true" ]]; then
|
|
python scripts/purge_unhealthy.py --dry-run
|
|
exit 0
|
|
fi
|
|
python scripts/purge_unhealthy.py
|
|
bash "$(dirname "$0")/commit_push.sh" "Purge unhealthy [$(date +'%Y-%m-%d')]"
|