summaryrefslogtreecommitdiff
path: root/crawler/shop_whiskyzone.go
diff options
context:
space:
mode:
Diffstat (limited to 'crawler/shop_whiskyzone.go')
-rw-r--r--crawler/shop_whiskyzone.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawler/shop_whiskyzone.go b/crawler/shop_whiskyzone.go
index c07c14f..8d86b8a 100644
--- a/crawler/shop_whiskyzone.go
+++ b/crawler/shop_whiskyzone.go
@@ -56,6 +56,15 @@ func ScrapeWhiskyzone(shop Shop) []Angebot {
W.Volume = get_volume(e)
W.Abv = get_abv(e)
+ if W.Volume == 0 {
+ DebugOffer(W, "Whiskyzone: Volume is zero")
+ return
+ }
+ if W.Abv == 0 {
+ DebugOffer(W, "Whiskyzone: Abv is zero")
+ return
+ }
+
base_price := e.Request.Ctx.Get("base_price")
if base_price == "same_as_discounted_price" {
W.Base_price = W.Discounted_price