mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Include old URL in script input (#3940)
* Include old URL in script input * Include URL in update input
This commit is contained in:
@@ -262,6 +262,9 @@ func (c Cache) ScrapeName(ctx context.Context, id, query string, ty ScrapeConten
|
||||
|
||||
// ScrapeFragment uses the given fragment input to scrape
|
||||
func (c Cache) ScrapeFragment(ctx context.Context, id string, input Input) (ScrapedContent, error) {
|
||||
// set the deprecated URL field if it's not set
|
||||
input.populateURL()
|
||||
|
||||
s := c.findScraper(id)
|
||||
if s == nil {
|
||||
return nil, fmt.Errorf("%w: id %s", ErrNotFound, id)
|
||||
|
||||
Reference in New Issue
Block a user