Skip to content

fix: SinsVR scraper crash guards and nil pointer fixes#2140

Open
mvdeckard wants to merge 1 commit intoxbapps:masterfrom
mvdeckard:fix/sinsvr-scraper-fix
Open

fix: SinsVR scraper crash guards and nil pointer fixes#2140
mvdeckard wants to merge 1 commit intoxbapps:masterfrom
mvdeckard:fix/sinsvr-scraper-fix

Conversation

@mvdeckard
Copy link
Copy Markdown
Contributor

@mvdeckard mvdeckard commented Feb 6, 2026

Summary

  • Add recover/defer to the scene scraping callback to prevent any panic from crashing the entire application — the scraper logs the error and moves to the next scene instead
  • Add bounds check on ChildAttrs before accessing dl8-video attributes (scene ID and title) to handle pages missing the video element
  • Fix nil pointer dereference crash in the cast fallback when http.Head returns an error — previously defer profileUrlResp.Body.Close() ran on a nil response
  • Close response body immediately instead of deferring inside a loop

Context

Scenes like https://xsinsvr.com/video/amateur have an empty "Starring" section (no actors listed), which triggers the cast fallback code path. If http.Head fails for the model profile URL lookup, the nil response causes a panic that crashes the app. The recover wrapper provides a safety net against any future unexpected site changes as well.

- Add recover/defer to scene callback to prevent panics from crashing the app
- Add bounds check on ChildAttrs before accessing dl8-video attributes
- Fix nil pointer crash when http.Head fails in cast fallback (defer on nil response)
- Close response body immediately instead of deferring inside loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant