Fix stash scraper errors and add apikey field (#5474)

* Use hasura/go-graphql-client instead of shurcooL version
* Fix graphql query errors
* Support setting api key for stash server
This commit is contained in:
WithoutPants
2024-11-13 10:14:55 +11:00
committed by GitHub
parent 64fed3553a
commit 5f690d96bd
9 changed files with 195 additions and 34 deletions

View File

@@ -247,7 +247,7 @@ sceneByURL:
A different stash server can be configured as a scraping source. This action applies only to `performerByName`, `performerByFragment`, and `sceneByFragment` types. This action requires that the top-level `stashServer` field is configured.
`stashServer` contains a single `url` field for the remote stash server. The username and password can be embedded in this string using `username:password@host`.
`stashServer` contains a single `url` field for the remote stash server. The username and password can be embedded in this string using `username:password@host`. Alternatively, the `apiKey` field can be used to authenticate with the remote stash server.
An example stash scrape configuration is below:
@@ -260,6 +260,7 @@ performerByFragment:
sceneByFragment:
action: stash
stashServer:
apiKey: <api key>
url: http://stashserver.com:9999
```