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

Add Handy / Funscript support #1377

Merged
merged 13 commits into from
May 24, 2021

Conversation

UnluckyChemical765
Copy link
Contributor

Partially addresses #1376. Completely closing it implies adding support for BLE devices such as the Keon or Launch.

Adds a /scene/:id/funscript route which serves a funscript file, if present.

Current convention is that these are files stored with the same path, but with the extension ".funscript".
This is stored in the Scene record and used to drive UI changes for funscript support.

Currently, that's limited to a funscript link in the Scene's file info.
Uses defucilis/thehandy, but not thehandy-react as I had difficulty integrating the context with the existing components.

Instead, the expensive calculation for the server time offset is put in localStorage for reuse.

A debounce was added when scrubbing the video, as otherwise it spammed the Handy API with updates to the current offset.
Handy's FW3 is stricter about this than FW2.
encodeURIComponent, not encodeURI
@WithoutPants WithoutPants added this to the Version 0.8.0 milestone May 13, 2021
@WithoutPants WithoutPants added the feature Pull requests that add a new feature label May 24, 2021
@WithoutPants WithoutPants merged commit 547f6d7 into stashapp:develop May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Pull requests that add a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants