summaryrefslogtreecommitdiff
path: root/crawler/shop_whiskysitenl.go
diff options
context:
space:
mode:
Diffstat (limited to 'crawler/shop_whiskysitenl.go')
-rw-r--r--crawler/shop_whiskysitenl.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/crawler/shop_whiskysitenl.go b/crawler/shop_whiskysitenl.go
index 18b4a7b..a028263 100644
--- a/crawler/shop_whiskysitenl.go
+++ b/crawler/shop_whiskysitenl.go
@@ -55,7 +55,11 @@ func (app *App) ScrapeWhiskysitenl(shop Shop) []Angebot {
return
}
- W.Image_url = e.ChildAttr("img", "src")
+ image_url := e.ChildAttr("img", "src")
+ if "" == image_url {
+ image_url = e.ChildAttr("img", "data-src")
+ }
+ W.Image_url = image_url
e.Request.Visit(W.Url)