mirror of
https://github.com/jez500/pricebuddy.git
synced 2026-11-24 19:58:13 +01:00
When a product went unavailable or was removed, its page had no price. Self-healing then ran on that page. The fixed selector list matched ".price" on related-product buttons (for example on imusic.au) and saved it as the store's price selector. That broke every product of the store. Before a heal, AiConfigHealer now scrapes another in-stock product of the same store that has a saved price, using the current config and the scrape cache. If that scrape finds a title and a price, the config is not broken, so the heal does not run and the cooldown is not set. heal() and healStoreForUrl() both use the check. The manual "Heal with AI" preview does not. Closes #220