mirror of
https://github.com/jez500/pricebuddy.git
synced 2026-11-24 19:58:13 +01:00
Schema.org image can be an ImageObject ({url:...}) or an array of them, not
just a string/array-of-strings. The image branch returned data_get(...,'image.0')
which was an array, throwing a TypeError (?string return) and 500ing add-product
for sites like Myer. Resolve the first URL string via firstImageString(), and
add a defensive guard so any non-stringable field value coerces to string/null.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>