Refactor xpath scraper code. Add fixed and map (#616)

* Refactor xpath scraper code
* Make post-process a list
* Add map post-process action
* Add fixed xpath values
* Refactor scrapers into cache
* Refactor into mapped config
* Trim test html
This commit is contained in:
WithoutPants
2020-07-21 14:06:25 +10:00
committed by GitHub
parent f4ae9b09a6
commit 2b9215702e
17 changed files with 1421 additions and 1146 deletions

View File

@@ -3,11 +3,11 @@ package api
import (
"context"
"github.com/stashapp/stash/pkg/scraper"
"github.com/stashapp/stash/pkg/manager"
)
func (r *mutationResolver) ReloadScrapers(ctx context.Context) (bool, error) {
err := scraper.ReloadScrapers()
err := manager.GetInstance().ScraperCache.ReloadScrapers()
if err != nil {
return false, err