From 933978a5f244e6907c4ef13388a0829839037978 Mon Sep 17 00:00:00 2001 From: horus Date: Thu, 15 Feb 2018 15:02:41 +0100 Subject: Bugfix. (crawler) --- crawler/shop_whiskyde.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawler/shop_whiskyde.go') diff --git a/crawler/shop_whiskyde.go b/crawler/shop_whiskyde.go index 77e4bcb..6038c11 100644 --- a/crawler/shop_whiskyde.go +++ b/crawler/shop_whiskyde.go @@ -54,6 +54,10 @@ func ScrapeWhiskyde(shop Shop) []Angebot { text_noisy := e.ChildText(".article-amount") + if !strings.Contains(text_noisy, "Liter") { + return + } + abv_noisy := strings.TrimSpace(strings.SplitAfter(text_noisy, "Liter")[1]) W.Volume, err = extract_volume(text_noisy) if err != nil { -- cgit v1.2.3