Fix AEBN age-gate cookie and stale movie selectors - #2847
Merged
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2809
Problem
Scraping an AEBN movie URL (
groupByURL) fails with:Root cause
ageGatedcookie was set to an empty value (Value: ""). AEBN now requiresageGated=true; an empty/absent value redirects every request tohttps://*.aebn.com/avs/gate, which contains none of the scraper's selectors, so the scrape returns no result and Stash panics.<a>is no longer nested inside<span>(//span//amatches nothing).dts-studio-name-wrappertosection-detail-list-item-studio.Changes
ageGatedto"true"forvod,gay, andstraight(all three domains verified to bypass the gate withtrue).Director://li[...director]//span//a→//li[...director]//aStudio://div[@class='dts-studio-name-wrapper']/a/text()→//li[@class='section-detail-list-item-studio']//a/text()Notes
Date(section-detail-list-item-release-date) andBackImage(dts-movie-boxcover-back) elements no longer exist on the redesigned AEBN movie page, so those fields return empty regardless.Related
runtime error: index out of range [0] with length 0) is a Stash-core issue that surfaces whenever a scraper returns no result. It is already fixed upstream in Fix panic when scraping with unknown field stash#6220 (see also scrapeGroupURL: input: scrapeGroupURL Internal system error. Error <runtime error: index out of range [0] with length 0> stash#6325, Handle marshalling scraped movie to group stash#5974), so users on older Stash builds will still see "Internal system error" until they update Stash.