stashapp / stash

An organizer for your porn, written in Go. Documentation: https://docs.stashapp.cc
https://stashapp.cc/
GNU Affero General Public License v3.0
9.09k stars 788 forks source link

[Bug Report] Stash-box scrape in tagger view throws error with more than 40 scenes #2637

Closed Emilo2 closed 2 years ago

Emilo2 commented 2 years ago

Describe the bug Scraping from stash-box using tagger view does not work if page length is more than 40. Throws error with {"networkErrors":null,"graphqlErrors":[{"message":"Too many scenes","path":["findScenesBySceneFingerprints"]}]}

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Scenes'
  2. Select 'Tagger'
  3. Set page length to more than 40 and make sure you have more than 1 page worth of scenes
  4. Click on 'Scrape All'
  5. See error

Expected behavior All the scenes on the page are scraped without error

Stash Version v0.15.0-8-gd68d0228

Emilo2 commented 2 years ago

I believe this to be the cause: https://github.com/stashapp/stash/blob/d68d022893aee62c5a3f4c81fefe9098f5309fc4/pkg/scraper/stashbox/stash_box.go#L145-L146

Line 146 should be end := i + 40

Seems to be working correctly when changing that locally