Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb7de0cc

Browse files
authored
feat: Add filter "Has Actor In Watchlist" (#1657)
1 parentbab4072 commitb7de0cc

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

‎pkg/api/scenes.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ func (i SceneResource) getFilters(req *restful.Request, resp *restful.Response)
387387
outAttributes=append(outAttributes,"Has AI Generated Script")
388388
outAttributes=append(outAttributes,"Has Human Generated Script")
389389
outAttributes=append(outAttributes,"Has Favourite Actor")
390+
outAttributes=append(outAttributes,"Has Actor in Watchlist")
390391
outAttributes=append(outAttributes,"Available from Alternate Sites")
391392
outAttributes=append(outAttributes,"Available from POVR")
392393
outAttributes=append(outAttributes,"Available from VRPorn")

‎pkg/models/model_scene.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,8 @@ func queryScenes(db *gorm.DB, r RequestSceneList) (*gorm.DB, *gorm.DB) {
907907
}
908908
case"Has Favourite Actor":
909909
where="exists (select * from scene_cast join actors on actors.id=scene_cast.actor_id where actors.favourite=1 and scene_cast.scene_id=scenes.id)"
910+
case"Has Actor in Watchlist":
911+
where="exists (select * from scene_cast join actors on actors.id=scene_cast.actor_id where actors.watchlist=1 and scene_cast.scene_id=scenes.id)"
910912
case"Available from POVR":
911913
where="exists (select 1 from external_reference_links where external_source like 'alternate scene %' and external_id like 'povr-%' and internal_db_id = scenes.id)"
912914
case"Available from VRPorn":

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp