mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Add ranges to funscript heatmaps (#3373)
* Add range to funscript heatmaps * Add config to draw heatmap range * Add setting to UI * Apply draw range setting Includes some refactoring --------- Co-authored-by: kermieisinthehouse <kermie@isinthe.house> Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -29,10 +29,11 @@ func (t *GenerateInteractiveHeatmapSpeedTask) Start(ctx context.Context) {
|
||||
videoChecksum := t.Scene.GetHash(t.fileNamingAlgorithm)
|
||||
funscriptPath := video.GetFunscriptPath(t.Scene.Path)
|
||||
heatmapPath := instance.Paths.Scene.GetInteractiveHeatmapPath(videoChecksum)
|
||||
drawRange := instance.Config.GetDrawFunscriptHeatmapRange()
|
||||
|
||||
generator := NewInteractiveHeatmapSpeedGenerator(funscriptPath, heatmapPath, t.Scene.Files.Primary().Duration)
|
||||
generator := NewInteractiveHeatmapSpeedGenerator(drawRange)
|
||||
|
||||
err := generator.Generate()
|
||||
err := generator.Generate(funscriptPath, heatmapPath, t.Scene.Files.Primary().Duration)
|
||||
|
||||
if err != nil {
|
||||
logger.Errorf("error generating heatmap: %s", err.Error())
|
||||
|
||||
Reference in New Issue
Block a user