From 570206e654f2a90b890b858116b0c89032749d27 Mon Sep 17 00:00:00 2001 From: pops64 Date: Tue, 15 Oct 2024 16:15:19 -0400 Subject: [PATCH] Revert CoverURL change Seems to have been a one time bug regarding the coverURL with SexbabesVR. Was no need to change the coverURL logic --- pkg/scrape/sexbabesvr.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/pkg/scrape/sexbabesvr.go b/pkg/scrape/sexbabesvr.go index 6579c8a13..864c7063f 100644 --- a/pkg/scrape/sexbabesvr.go +++ b/pkg/scrape/sexbabesvr.go @@ -36,12 +36,10 @@ func SexBabesVR(wg *models.ScrapeWG, updateSite bool, knownScenes []string, out tmp := strings.Split(posterURL, "/") sc.SiteID = tmp[len(tmp)-2] sc.SceneID = slugify.Slugify(sc.Site) + "-" + sc.SiteID + // Cover Url + sc.Covers = append(sc.Covers, strings.Replace(e.Attr("poster"), "/videoDetail2x", "", -1)) }) - // Cover Url - coverURL := e.Request.Ctx.GetAny("coverURL").(string) - sc.Covers = append(sc.Covers, coverURL) - // Title e.ForEach(`div.video-detail__description--container h1`, func(id int, e *colly.HTMLElement) { sc.Title = strings.TrimSpace(e.Text) @@ -124,10 +122,7 @@ func SexBabesVR(wg *models.ScrapeWG, updateSite bool, knownScenes []string, out e.ForEach(`a.video-container__image`, func(cnt int, e *colly.HTMLElement) { sceneURL := e.Request.AbsoluteURL(e.Attr("href")) if !funk.ContainsString(knownScenes, sceneURL) { - coverURL := e.ChildAttr("a.video-container__image img", "data-src") - ctx := colly.NewContext() - ctx.Put("coverURL", coverURL) - sceneCollector.Request("GET", sceneURL, nil, ctx, nil) + sceneCollector.Visit(sceneURL) } }) })