Skip to content

Commit

Permalink
Update vrspy.go
Browse files Browse the repository at this point in the history
fix dupe images caused by website changes
  • Loading branch information
theRealKLH committed Mar 1, 2024
1 parent 74859c1 commit 573c189
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
@@ -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

0 comments on commit 573c189

Please sign in to comment.