summaryrefslogtreecommitdiff
path: root/crawler/shop_whiskyde.go
diff options
context:
space:
mode:
Diffstat (limited to 'crawler/shop_whiskyde.go')
-rw-r--r--crawler/shop_whiskyde.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/crawler/shop_whiskyde.go b/crawler/shop_whiskyde.go
index ffbbe08..7ad7fd7 100644
--- a/crawler/shop_whiskyde.go
+++ b/crawler/shop_whiskyde.go
@@ -23,6 +23,10 @@ func (app *App) ScrapeWhiskyde(shop Shop) []Angebot {
}
W := Angebot{}
+
+ W.Shop = shop.Id
+ W.Spirit_type = "Whisky"
+
whisky_name := e.ChildAttr("a", "title")
W.Name = whisky_name
whisky_url := strings.Replace(e.ChildAttr("a", "href"), "?&searchorigin=2", "", 1)
@@ -95,9 +99,6 @@ func (app *App) ScrapeWhiskyde(shop Shop) []Angebot {
return
}
- W.Shop = shop.Id
- W.Spirit_type = "Whisky"
-
W.Base_price, err = convert_price(e.ChildText(".article-unitprice-default"))
if err != nil {
W.error_msg = err.Error()