mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Add http headers support to scraper (#1273)
This commit is contained in:
@@ -175,11 +175,17 @@ type clickOptions struct {
|
||||
Sleep int `yaml:"sleep"`
|
||||
}
|
||||
|
||||
type header struct {
|
||||
Key string `yaml:"Key"`
|
||||
Value string `yaml:"Value"`
|
||||
}
|
||||
|
||||
type scraperDriverOptions struct {
|
||||
UseCDP bool `yaml:"useCDP"`
|
||||
Sleep int `yaml:"sleep"`
|
||||
Clicks []*clickOptions `yaml:"clicks"`
|
||||
Cookies []*cookieOptions `yaml:"cookies"`
|
||||
Headers []*header `yaml:"headers"`
|
||||
}
|
||||
|
||||
func loadScraperFromYAML(id string, reader io.Reader) (*config, error) {
|
||||
|
||||
Reference in New Issue
Block a user