diff --git a/pkg/api/scenes.go b/pkg/api/scenes.go index feeec5225..5b6f7fd00 100644 --- a/pkg/api/scenes.go +++ b/pkg/api/scenes.go @@ -343,6 +343,7 @@ func (i SceneResource) getFilters(req *restful.Request, resp *restful.Response) outAttributes = append(outAttributes, "In Trailer List") outAttributes = append(outAttributes, "Has Preview") outAttributes = append(outAttributes, "Has Subscription") + outAttributes = append(outAttributes, "Needs Update") outAttributes = append(outAttributes, "Rating 0") outAttributes = append(outAttributes, "Rating .5") outAttributes = append(outAttributes, "Rating 1") diff --git a/pkg/models/model_scene.go b/pkg/models/model_scene.go index 07417bb99..895dfe9f5 100644 --- a/pkg/models/model_scene.go +++ b/pkg/models/model_scene.go @@ -812,6 +812,8 @@ func queryScenes(db *gorm.DB, r RequestSceneList) (*gorm.DB, *gorm.DB) { where = "has_video_preview = 1" case "Has Subscription": where = "is_subscribed = 1" + case "Needs Update": + where = "needs_update = 1" case "Rating": where = "scenes.star_rating = " + value case "No Actor/Cast":