mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Phash distance filter (#3596)
* Add phash_distance filter criterion * Add distance to phash filter in UI
This commit is contained in:
@@ -289,7 +289,7 @@ const makeScenesPHashMatchUrl = (phash: GQL.Maybe<string> | undefined) => {
|
||||
if (!phash) return "#";
|
||||
const filter = new ListFilterModel(GQL.FilterMode.Scenes, undefined);
|
||||
const criterion = new PhashCriterion();
|
||||
criterion.value = phash;
|
||||
criterion.value = { value: phash };
|
||||
filter.criteria.push(criterion);
|
||||
return `/scenes?${filter.makeQueryParameters()}`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user