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
1 changed files with 4 additions and 0 deletions

View File

@ -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
})