mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Skip cleaning for search by name scrape queries (#2059)
* Skip pp for search by name queries * upgrade htmlquery
This commit is contained in:
@@ -119,6 +119,7 @@ func (s *jsonScraper) scrapeByName(ctx context.Context, name string, ty models.S
|
||||
}
|
||||
|
||||
q := s.getJsonQuery(doc)
|
||||
q.setType(SearchQuery)
|
||||
|
||||
var content []models.ScrapedContent
|
||||
switch ty {
|
||||
@@ -240,8 +241,17 @@ func (s *jsonScraper) getJsonQuery(doc string) *jsonQuery {
|
||||
}
|
||||
|
||||
type jsonQuery struct {
|
||||
doc string
|
||||
scraper *jsonScraper
|
||||
doc string
|
||||
scraper *jsonScraper
|
||||
queryType QueryType
|
||||
}
|
||||
|
||||
func (q *jsonQuery) getType() QueryType {
|
||||
return q.queryType
|
||||
}
|
||||
|
||||
func (q *jsonQuery) setType(t QueryType) {
|
||||
q.queryType = t
|
||||
}
|
||||
|
||||
func (q *jsonQuery) runQuery(selector string) ([]string, error) {
|
||||
|
||||
Reference in New Issue
Block a user