Freeones Scrape: Fix scraping by alias

This commit is contained in:
Friendly C
2019-07-02 12:01:12 +02:00
parent d4f383a005
commit 7c94262020

View File

@@ -65,6 +65,10 @@ func GetPerformer(performerName string) (*models.ScrapedPerformer, error) {
if strings.ToLower(s.Text()) == strings.ToLower(performerName) { if strings.ToLower(s.Text()) == strings.ToLower(performerName) {
return true return true
} }
alias := s.ParentsFiltered(".babeNameBlock").Find(".babeAlias").First();
if strings.EqualFold(alias.Text(), "aka " + performerName) {
return true
}
return false return false
}) })