Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure requests and collectors #1946

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

toshski
Copy link
Contributor

@toshski toshski commented Feb 26, 2025

This change allows users to specify request headers, cookies, and the request body. It does not modify headers, cookies, or the body for existing requests made by XBVR—rather, it simply provides users with the ability to set them if they choose to.

This can be useful in scenarios such as bypassing age verification prompts or skipping redirects to advertising pages. The effectiveness of these settings depends entirely on how the site has been implemented.

The configured headers, cookies, and body are stored in a record within the kvs table. When a scraper collector is created or a trailer is requested from the Heresphere API, the system checks whether any modifications need to be applied to the request. For trailers, this can be used to authenticate with the site and access the full scene instead of just the trailer.

The key for the kvs table entry is, by default, the domain of the request followed by either -scraper or -trailers. A UI for configuring these settings is available under Options > Advanced > "Cookies/Headers". Since these details are stored in the kvs table, they can be imported and exported along with bundle imports/exports by selecting "Include config settings". Users can also import individual settings.

Additionally, I have updated the Naughty America trailer functionality to use their Heresphere API instead of a direct URL. This change provides users with more codec and resolution options for trailers.

I will also provide a Wiki page with more complete instructions on how to set this up.

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