Skip to content

Commit

Permalink
scraper: fix SLR scraper (#1105)
Browse files Browse the repository at this point in the history
Co-authored-by: crwxaj <crwxaj>
  • Loading branch information
crwxaj authored Jan 17, 2023
1 parent 3783aff commit 2694fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scrape/slrstudios.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func SexLikeReal(wg *sync.WaitGroup, updateSite bool, knownScenes []string, out
})

siteCollector.OnHTML(`div.c-grid--scenes article`, func(e *colly.HTMLElement) {
sceneURL := e.Request.AbsoluteURL(e.ChildAttr("a", "href"))
sceneURL := e.Request.AbsoluteURL(e.ChildAttr("a[data-qa=scenes-grid-item-link-title]", "href"))
if strings.Contains(sceneURL, "scene") {
// If scene exist in database, there's no need to scrape
if !funk.ContainsString(knownScenes, sceneURL) {
Expand Down

0 comments on commit 2694fc7

Please sign in to comment.