Skip to content

Commit

Permalink
feat: Manually link Scenes and Actors to Stashdb (#1888)
Browse files Browse the repository at this point in the history
* Allow Stash matching on Title/ReleaseDate/StudioCode

* Manual search and link to  Stashdb

* Fix Stash Search Performer and Ranking

* Stash by Parent, Save Parent in Scene, Performer Studio Fix

* Handle Studio Not Found

---------

Co-authored-by: crwxaj <[email protected]>
  • Loading branch information
toshski and crwxaj authored Jan 17, 2025
1 parent 085c3c0 commit 8137aee
Show file tree
Hide file tree
Showing 15 changed files with 1,497 additions and 63 deletions.
10 changes: 10 additions & 0 deletions pkg/api/external_references.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ func (i ExternalReference) WebService() *restful.WebService {

ws.Route(ws.GET("/generic/scrape_all").To(i.genericActorScraper).
Metadata(restfulspec.KeyOpenAPITags, tags))
ws.Route(ws.GET("/stashdb/link2scene/{scene-id}/{stashdb-id}").To(i.linkScene2Stashdb).
Metadata(restfulspec.KeyOpenAPITags, tags).
Writes(models.Scene{}))
ws.Route(ws.GET("/stashdb/search/{scene-id}").To(i.searchForStashdbScene).
Metadata(restfulspec.KeyOpenAPITags, tags))
ws.Route(ws.GET("/stashdb/link2actor/{actor-id}/{stashdb-id}").To(i.linkActor2Stashdb).
Metadata(restfulspec.KeyOpenAPITags, tags).
Writes(models.Scene{}))
ws.Route(ws.GET("/stashdb/searchactor/{actor-id}").To(i.searchForStashdbActor).
Metadata(restfulspec.KeyOpenAPITags, tags))

ws.Route(ws.POST("/generic/scrape_single").To(i.genericSingleActorScraper).
Metadata(restfulspec.KeyOpenAPITags, tags))
Expand Down
Loading

0 comments on commit 8137aee

Please sign in to comment.