From bcc70af7e597200578d2bfe677e9304701e59de6 Mon Sep 17 00:00:00 2001 From: bnkai <48220860+bnkai@users.noreply.github.com> Date: Thu, 11 Apr 2019 21:54:38 +0300 Subject: [PATCH] Fix minor freeones scraper bug (#41) Fix minor freeones scraper bug --- pkg/scraper/freeones.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/scraper/freeones.go b/pkg/scraper/freeones.go index e16dcce15..9a26af08e 100644 --- a/pkg/scraper/freeones.go +++ b/pkg/scraper/freeones.go @@ -74,7 +74,7 @@ func GetPerformer(performerName string) (*models.ScrapedPerformer, error) { matches := regex.FindStringSubmatch(href) href = strings.Replace(href, matches[1], "bio_"+matches[1]+".php", -1) href = "https://www.freeones.com" + href - + bioRes, err := http.Get(href) if err != nil { return nil, err @@ -228,6 +228,9 @@ func paramValue(params *goquery.Selection, paramIndex int) string { return content } node = node.NextSibling + if (node == nil) { + return "" + } return trim(node.FirstChild.Data) }