mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Fix identify and script scraper bugs (#2375)
* Continue identify if source fails * Handle empty result set correctly * Parse null values from scraper script correctly * Omit warning when json selector value missing * Return nil when scraped item not found * Fix graphql validation errors
This commit is contained in:
@@ -239,6 +239,11 @@ func (s scraperSource) ScrapeScene(ctx context.Context, sceneID int) (*models.Sc
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// don't try to convert nil return value
|
||||
if content == nil {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
if scene, ok := content.(models.ScrapedScene); ok {
|
||||
return &scene, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user