mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Fix gallery scraper url loading (#4157)
This commit is contained in:
@@ -73,6 +73,7 @@ type TagFinder interface {
|
|||||||
type GalleryFinder interface {
|
type GalleryFinder interface {
|
||||||
models.GalleryGetter
|
models.GalleryGetter
|
||||||
models.FileLoader
|
models.FileLoader
|
||||||
|
models.URLLoader
|
||||||
}
|
}
|
||||||
|
|
||||||
type Repository struct {
|
type Repository struct {
|
||||||
@@ -399,7 +400,12 @@ func (c Cache) getGallery(ctx context.Context, galleryID int) (*models.Gallery,
|
|||||||
return fmt.Errorf("gallery with id %d not found", galleryID)
|
return fmt.Errorf("gallery with id %d not found", galleryID)
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret.LoadFiles(ctx, c.repository.GalleryFinder)
|
err = ret.LoadFiles(ctx, c.repository.GalleryFinder)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
return ret.LoadURLs(ctx, c.repository.GalleryFinder)
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user