From 807f6050c24dc011d24357c9252ca758104eb832 Mon Sep 17 00:00:00 2001 From: Maximilian Möhring Date: Tue, 12 Jan 2021 08:28:32 +0100 Subject: Accepts sparkling wine from d12. --- crawler/shop_drankdozijn.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'crawler/shop_drankdozijn.go') diff --git a/crawler/shop_drankdozijn.go b/crawler/shop_drankdozijn.go index 3d2a840..8cf18ba 100644 --- a/crawler/shop_drankdozijn.go +++ b/crawler/shop_drankdozijn.go @@ -206,8 +206,13 @@ func (app *App) ScrapeDrankdozijn(shop Shop) []Angebot { log.Println("extracting volume failed") } } else if v.Description == "Kategorie" { - tmp_type := detect_spirit_type(v.Value.Description) - if "Champagner" == tmp_type { + var tmp_type string + if "Moussierend" == v.Value.Description { + tmp_type = "Sekt" + } else { + tmp_type = detect_spirit_type(v.Value.Description) + } + if "Champagner" == tmp_type || "Sekt" == tmp_type { if tmp_type != W.Spirit_type { W.Trace("Spirit Type Changed: " + W.Spirit_type + " -> " + tmp_type) W.Spirit_type = tmp_type -- cgit v1.2.3