From d20d2a89005a67e1f8139b87e998d0e4e50ceb41 Mon Sep 17 00:00:00 2001 From: crwxaj <52156245+crwxaj@users.noreply.github.com> Date: Thu, 30 Nov 2023 12:59:03 +0100 Subject: [PATCH] scraper: Fix CzechVR scraper and CzechVR funscript scraper (#1528) Co-authored-by: crwxaj --- pkg/scrape/czechvr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/scrape/czechvr.go b/pkg/scrape/czechvr.go index 605f4b80c..40c3b18a3 100644 --- a/pkg/scrape/czechvr.go +++ b/pkg/scrape/czechvr.go @@ -157,7 +157,7 @@ func CzechVR(wg *sync.WaitGroup, updateSite bool, knownScenes []string, out chan siteCollector.OnHTML(`div.postTag`, func(e *colly.HTMLElement) { sceneURL := "" - e.ForEach(`div.navez h2 a`, func(id int, e *colly.HTMLElement) { + e.ForEach(`div.nazev h2 a`, func(id int, e *colly.HTMLElement) { sceneURL = e.Request.AbsoluteURL(e.Attr("href")) // If scene exist in database, there's no need to scrape if !funk.ContainsString(knownScenes, sceneURL) { @@ -165,7 +165,7 @@ func CzechVR(wg *sync.WaitGroup, updateSite bool, knownScenes []string, out chan } }) if config.Config.Funscripts.ScrapeFunscripts { - e.ForEach(`div.interactive`, func(id int, e *colly.HTMLElement) { + e.ForEach(`div.iconinteractive`, func(id int, e *colly.HTMLElement) { var existingScene models.Scene existingScene.GetIfExistURL(sceneURL) if existingScene.ID != 0 && existingScene.ScriptPublished.IsZero() {