Fix identify ScrapedScene conversion (#2071)

This commit is contained in:
Releck 2021-11-29 02:42:23 +00:00 committed by GitHub
parent 09c4c4173d
commit 59883df115
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -239,8 +239,8 @@ func (s scraperSource) ScrapeScene(ctx context.Context, sceneID int) (*models.Sc
return nil, err
}
if scene, ok := content.(*models.ScrapedScene); ok {
return scene, nil
if scene, ok := content.(models.ScrapedScene); ok {
return &scene, nil
}
return nil, errors.New("could not convert content to scene")