Skip to content

Fix AEBN age-gate cookie and stale movie selectors - #2847

Merged
Maista6969 merged 1 commit into
stashapp:masterfrom
crazycuck:fix-aebn-agegate
Aug 25, 2026
Merged

Fix AEBN age-gate cookie and stale movie selectors#2847
Maista6969 merged 1 commit into
stashapp:masterfrom
crazycuck:fix-aebn-agegate

Conversation

@crazycuck

@crazycuck crazycuck commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Fixes #2809

Problem

Scraping an AEBN movie URL (groupByURL) fails with:

scrapeGroupURL: input: scrapeGroupURL Internal system error. Error <runtime error: index out of range [0] with length 0>

Root cause

  1. Age gate bypass cookie is wrong. The ageGated cookie was set to an empty value (Value: ""). AEBN now requires ageGated=true; an empty/absent value redirects every request to https://*.aebn.com/avs/gate, which contains none of the scraper's selectors, so the scrape returns no result and Stash panics.
  2. Director selector — the <a> is no longer nested inside <span> (//span//a matches nothing).
  3. Studio selector — the class was renamed from dts-studio-name-wrapper to section-detail-list-item-studio.

Changes

  • Set ageGated to "true" for vod, gay, and straight (all three domains verified to bypass the gate with true).
  • Director: //li[...director]//span//a//li[...director]//a
  • Studio: //div[@class='dts-studio-name-wrapper']/a/text()//li[@class='section-detail-list-item-studio']//a/text()

Notes

  • The Date (section-detail-list-item-release-date) and BackImage (dts-movie-boxcover-back) elements no longer exist on the redesigned AEBN movie page, so those fields return empty regardless.

Related

The ageGated cookie was set to an empty value, but AEBN now requires
ageGated=true to bypass the age gate; an empty value redirected every
scrape to /avs/gate and returned no result (runtime error: index out of
range [0] with length 0). Also fix the Director selector (the <a> is no
longer nested inside <span>) and the Studio selector (class renamed to
section-detail-list-item-studio).
@Maista6969
Maista6969 merged commit 1eaff5c into stashapp:master Aug 25, 2026
1 check passed
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.

gay.aebn.com Scraper returns Error <runtime error: index out of range [0] with length 0>

2 participants