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

Implement Heresphere needsMediaSource flag #1890

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

toshski
Copy link
Contributor

@toshski toshski commented Dec 28, 2024

Minor change to implement the needsMediaSource flag in the Heresphere request body.

Heresphere sets this flag if it needs media source details, i.e. which is only when it wants to play the media. The advantage of checking the flag is for trailers, some of which may require a scene page to be scraped to get the current trailer URL (i.e. to get the latest tokens, expiry times, etc). When Heresphere is started it will request a library list and then each scene in the list, triggering a scrape for those trailers. These requests have needsMediaSource set to false as Heresphere is not playing the video and only needs the other metadata, e.g. title, actors, tags, etc.

This is just a minor performance change, reducing or spreading the scrapes required by Trailers until the Trailer is requested to be played.

@crwxaj crwxaj merged commit 1bcff55 into xbapps:master Jan 17, 2025
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.

2 participants