Skip to content

Commit

Permalink
scraper: Fix VRBangers crash (#1466)
Browse files Browse the repository at this point in the history
Co-authored-by: crwxaj <crwxaj>
  • Loading branch information
crwxaj authored Nov 5, 2023
1 parent c95f30c commit 3557b8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/scrape/vrbangers.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ func VRBangersSite(wg *sync.WaitGroup, updateSite bool, knownScenes []string, ou
sc.Site = siteID
sc.HomepageURL = strings.Split(e.Request.URL.String(), "?")[0]

content_id := strings.Split(strings.Replace(sc.HomepageURL, "//", "/", -1), "/")[3]
parts := strings.Split(strings.Replace(sc.HomepageURL, "//", "/", -1), "/")
if len(parts) < 4 {
return
}
content_id := parts[3]

//https://content.vrbangers.com
contentURL := strings.Replace(URL, "//", "//content.", 1)
Expand Down

0 comments on commit 3557b8a

Please sign in to comment.