From 3e9baeff59bdb9da78f41276f01a1fb9a52e0193 Mon Sep 17 00:00:00 2001 From: unwox Date: Fri, 14 Mar 2025 22:56:52 +0600 Subject: moychay: do not try to store absent image --- parser/moychay.fnl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/parser/moychay.fnl b/parser/moychay.fnl index cec6a77..864ccc4 100644 --- a/parser/moychay.fnl +++ b/parser/moychay.fnl @@ -35,7 +35,9 @@ :weight weight :volume (parser.guess-volume product.name) :price price - :image (.. "https://moychay.ru" product.image) + :image (if product.image + (.. "https://moychay.ru" product.image) + nil) :url (.. "https://moychay.ru" product.url) :price-per (if (and price weight (< 0 weight)) (/ (math.ceil (* (/ price weight) 10)) 10) -- cgit v1.2.3