diff --git a/pkg/api/scenes.go b/pkg/api/scenes.go index b372d351a..353bfa3b2 100644 --- a/pkg/api/scenes.go +++ b/pkg/api/scenes.go @@ -318,6 +318,7 @@ func (i SceneResource) getFilters(req *restful.Request, resp *restful.Response) outAttributes = append(outAttributes, "Has Subtitles File") outAttributes = append(outAttributes, "Is Favourite") outAttributes = append(outAttributes, "Is Scripted") + outAttributes = append(outAttributes, "Is Passthrough") outAttributes = append(outAttributes, "In Watchlist") outAttributes = append(outAttributes, "Has Rating") outAttributes = append(outAttributes, "Has Cuepoints") diff --git a/pkg/models/model_scene.go b/pkg/models/model_scene.go index 923487390..bf7bd8ae7 100644 --- a/pkg/models/model_scene.go +++ b/pkg/models/model_scene.go @@ -882,6 +882,12 @@ func QueryScenes(r RequestSceneList, enablePreload bool) ResponseSceneList { } else { where = "scenes.favourite = 0" } + case "Is Passthrough": + if truefalse { + where = "chroma_key != ''" + } else { + where = "chroma_key = ''" + } case "Stashdb Linked": if truefalse { where = "(select count(*) from external_reference_links " + erlAlias + " where " + erlAlias + ".internal_db_id = scenes.id and " + erlAlias + ".`external_source` = 'stashdb scene') > 0"