Skip to content

Add funscript speed stats (supersedes #622) - #2285

Open
moToroTor wants to merge 1 commit into
xbapps:masterfrom
moToroTor:fix/622-funscript-speeds
Open

moToroTor wants to merge 1 commit into
xbapps:masterfrom
moToroTor:fix/622-funscript-speeds

Conversation

@moToroTor

Copy link
Copy Markdown

Supersedes #622, which has sat unmerged since 2021 (9 conflicting files against current master) and whose author (@agentfisk) has been inactive since 2023.

This ports that PR's feature onto current master, touching the same 17 files: the median per-action speed is calculated from funscript actions, stored on files and scenes, shown in DeoVR titles and SceneCards, with min/max filters and asc/desc sort. Two adaptations were needed:

  • Migrations renumbered to 0088/0089 (the PR's 0028/0029 slots are long taken).
  • The speed-in-title prefix stays opt-in behind a new funscript_speeds DeoVR option (default off), since it costs DeoVR's local-script matching; heatmap thumbnails stay behind render_heatmaps.

Also adds pkg/tasks/funscripts_test.go, focused coverage for the speed calculation (median math over a fixture .funscript, plus a missing-file error case).

Verified: touched Go packages build (pkg/tasks, pkg/migrations, pkg/api type-check; the ui/dist embed failure also occurs on pristine master without a built frontend), new tests pass, existing pkg/api tests and scrape registry tests pass. The two pre-existing go vet complaints in untouched lines remain.

Original PR: #622

Ports agentfisk's xbapps#622 onto current master: per-file median speed is
calculated from funscript actions, stored on files and scenes, shown
in DeoVR titles (optional, behind funscript_speeds) and SceneCards,
with min/max filters and asc/desc sort. Migrations are numbered
0088/0089 (the PR's 0028/0029 slots are long taken). Speed-in-title
stays opt-in because it costs DeoVR's local-script matching.

Supersedes: xbapps#622
Assisted-By: muse-spark-1.3
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