From 7c9426202013674757f2d3bbbb0969ecf022099f Mon Sep 17 00:00:00 2001 From: Friendly C <52448715+friendlycrab@users.noreply.github.com> Date: Tue, 2 Jul 2019 12:01:12 +0200 Subject: [PATCH] Freeones Scrape: Fix scraping by alias --- pkg/scraper/freeones.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/scraper/freeones.go b/pkg/scraper/freeones.go index 9a26af08e..a2063a3bf 100644 --- a/pkg/scraper/freeones.go +++ b/pkg/scraper/freeones.go @@ -65,6 +65,10 @@ func GetPerformer(performerName string) (*models.ScrapedPerformer, error) { if strings.ToLower(s.Text()) == strings.ToLower(performerName) { return true } + alias := s.ParentsFiltered(".babeNameBlock").Find(".babeAlias").First(); + if strings.EqualFold(alias.Text(), "aka " + performerName) { + return true + } return false })