Skip to content

Commit

Permalink
fix: unsupported criterion filter (framerate)
Browse files Browse the repository at this point in the history
This was added to stash in v0.24.0:

stashapp/stash#4161

(internal/stash/gqlschema/local.graphql says "This file was generated.
 Do not edit manually." but I have no idea how it was generated.

 My limited testing of booting up stash-vr and `wget`ing against
 /heresphere seems to yield valid results; ie, the number of videos per
 saved framerate filters matches what is displayed by stash's frontend.
 And, `wget`ing a random scene in these lists does return a scene of the
 given framerate.)
  • Loading branch information
lv10wizard committed Jan 8, 2024
1 parent d4a0bf8 commit 984a831
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/stash/filter/scenefilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ func setSceneFilterCriterion(ctx context.Context, criterionType string, criterio
sceneFilter.Play_count = parseIntCriterionInput(criterionValue)
case "play_duration":
sceneFilter.Play_duration = parseIntCriterionInput(criterionValue)
case "framerate":
sceneFilter.Framerate = parseIntCriterionInput(criterionValue)

//bool
case "organized":
Expand Down
2 changes: 2 additions & 0 deletions internal/stash/gql/schema/local.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2800,6 +2800,8 @@ input SceneFilterType {
rating100: IntCriterionInput
"Filter by resolution"
resolution: ResolutionCriterionInput
"Filter by frame rate"
framerate: IntCriterionInput
"Filter by resume time"
resume_time: IntCriterionInput
"Filter by StashID"
Expand Down

0 comments on commit 984a831

Please sign in to comment.