Fix scraping more than 40 scenes from stash-box (#2638)

This commit is contained in:
Emilo2 2022-06-03 02:37:24 +03:00 committed by GitHub
parent d68d022893
commit 8a1c349976
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,7 +143,7 @@ func (c Client) FindStashBoxScenesByFingerprints(ctx context.Context, ids []int)
func (c Client) findStashBoxScenesByFingerprints(ctx context.Context, scenes [][]*graphql.FingerprintQueryInput) ([][]*models.ScrapedScene, error) {
var ret [][]*models.ScrapedScene
for i := 0; i < len(scenes); i += 40 {
end := i + 100
end := i + 40
if end > len(scenes) {
end = len(scenes)
}