diff options
| author | horus | 2018-02-15 15:02:41 +0100 |
|---|---|---|
| committer | horus | 2018-02-15 15:02:41 +0100 |
| commit | 933978a5f244e6907c4ef13388a0829839037978 (patch) | |
| tree | 17049d057893a392ffc24f6f8ce3f800b504f230 /crawler/shop_whiskyde.go | |
| parent | 8ee15ccf1f5ee54efc2f973ff59b5cc58dff44fa (diff) | |
| download | alkobote-933978a5f244e6907c4ef13388a0829839037978.tar.gz | |
Bugfix. (crawler)
Diffstat (limited to 'crawler/shop_whiskyde.go')
| -rw-r--r-- | crawler/shop_whiskyde.go | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |
