Skip to content

Commit

Permalink
scraper: fix duplicate gallery images for VRSpy (force update to fix …
Browse files Browse the repository at this point in the history
…existing scenes)

fix dupe images caused by website changes
  • Loading branch information
theRealKLH authored Mar 26, 2024
1 parent 7519307 commit 1760f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scrape/vrspy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1760f4a

Please sign in to comment.