mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Apply all post processors to performer (#1387)
* Apply all post processors to performer Scraping a performer by fragment doesn't correctly work with tags. When tags are returned to the scraper then all are recognized as new. This is due to the post process method not being applied while it should be, as is done when scraping a performer by URL.
This commit is contained in:
@@ -197,9 +197,11 @@ func (c Cache) ScrapePerformer(scraperID string, scrapedPerformer models.Scraped
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// post-process - set the image if applicable
|
if ret != nil {
|
||||||
if err := setPerformerImage(ret, c.globalConfig); err != nil {
|
err = c.postScrapePerformer(ret)
|
||||||
logger.Warnf("Could not set image using URL %s: %s", *ret.Image, err.Error())
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret, nil
|
return ret, nil
|
||||||
|
|||||||
@@ -5,3 +5,6 @@
|
|||||||
* Add `subtractDays` post-process scraper action. ([#1399](https://github.com/stashapp/stash/pull/1399))
|
* Add `subtractDays` post-process scraper action. ([#1399](https://github.com/stashapp/stash/pull/1399))
|
||||||
* Skip scanning directories if path matches image and video exclude patterns. ([#1382](https://github.com/stashapp/stash/pull/1382))
|
* Skip scanning directories if path matches image and video exclude patterns. ([#1382](https://github.com/stashapp/stash/pull/1382))
|
||||||
* Add button to remove studio stash ID. ([#1378](https://github.com/stashapp/stash/pull/1378))
|
* Add button to remove studio stash ID. ([#1378](https://github.com/stashapp/stash/pull/1378))
|
||||||
|
|
||||||
|
### 🐛 Bug fixes
|
||||||
|
* Fix post-processing not running when scraping by performer fragment. ([#1387](https://github.com/stashapp/stash/pull/1387))
|
||||||
|
|||||||
Reference in New Issue
Block a user