From 573c189c464c89c56ec53716d4b74264fc8a5c2e Mon Sep 17 00:00:00 2001 From: theRealKLH <65736720+theRealKLH@users.noreply.github.com> Date: Fri, 1 Mar 2024 17:46:58 -0500 Subject: [PATCH] Update vrspy.go fix dupe images caused by website changes --- pkg/scrape/vrspy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scrape/vrspy.go b/pkg/scrape/vrspy.go index 8814560de..6cccd4559 100755 --- a/pkg/scrape/vrspy.go +++ b/pkg/scrape/vrspy.go @@ -114,7 +114,7 @@ func VRSpy(wg *sync.WaitGroup, updateSite bool, knownScenes []string, out chan<- } nuxtData := e.ChildText(`#__NUXT_DATA__`) - imageRegex := regexp.MustCompile(regexp.QuoteMeta(cdnSceneURL.String()) + `/photos/[^?"]*\.jpg`) + imageRegex := regexp.MustCompile(regexp.QuoteMeta(cdnSceneURL.String()) + `(/photos/[^?"]*\.jpg)\?width`) sc.Gallery = imageRegex.FindAllString(nuxtData, -1) // trailer details